I have an application that takes a filename parameter. The application
uses the 'fopen' command to open the filename and process the file
(very simple really). The problem is that when I type the filename as
an absolute path, the file cannot be read, but when it is typed as a
relative path, it works fine. For example,
This works perfectly (from a directory in my home directory):
$ ./x264.exe -o out.h264 ../../../testseq/yuv420/COASTGUARD-YUV420-CIF 352x288
Whilst this does not:
./x264.exe -o out.264 /testseq/yuv420/COASTGUARD-YUV420-CIF 352x288
The obvious problem would be that the two paths are not equal, but I
can assure you that this is not the case -they both point to the same
file. The only difference is that one path is relative and the other
is absolute. The permissions are set so all users can read the file.