[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
path specification
Hello Gents,
question about what you want to use for format. when you call open,
what do you want to do when there is only a filename?
,/etc/passwd
-OR-
/etc/passwd
if it's the second one, then how do we differentiate between a path
specification and a device specification?
The code in __ofpath right now looks for the rightmost comma and assumes
everything before it is the device and after is filename.
if we use the first method, then please note that __ofpath.c needs to be
changed slightly.
if (!__ofpath_whatever(path, &offset, &length))
return NULL;
if(length==0) <--------- add these lines
return NULL; <--------- takes care of when ',' is the first
character.
ajay