embedded '/' in a filename???
Seth H Zirin
seth at megad.UUCP
Tue Feb 26 03:27:20 AEST 1985
> Is it possible to create a file with an
> embedded '/' in its name ?
It is not possible to create such a file using "normal means". The kernel
function which converts a path name into an inode pointer (namei) uses the
'/' (slash) as a delimiter for file name components (name pieces).
If you managed to embed a slash in the name of a file using extraordinary
means on its parent directory, it would be "rather difficult" to open (or
unlink, stat or mount on to name a few).
Why not consider using a backslash instead ? With a backslash you'll only
have to battle the shell.
--
Name: Seth H Zirin
USmail: Megadata Corp. 35 Orville Dr., Bohemia, NY 11716
Phone: 516-589-6800 (M-F 9-5 EST)
UUCP: {allegra, philabs}!sbcs!megad!seth
Keeper of the News for megad
More information about the Comp.unix
mailing list