Return to filesys.c CVS log | Up to [local] / src / usr.bin / rdistd |
version 1.3, 1996/06/26 05:38:21 | version 1.4, 1996/07/29 20:46:40 | ||
---|---|---|---|
|
|
||
* Normally we want to change /dir1/dir2/file | * Normally we want to change /dir1/dir2/file | ||
* into "/dir1/dir2/." | * into "/dir1/dir2/." | ||
*/ | */ | ||
if (p = (char *) strrchr(file, '/')) { | if ((p = (char *) strrchr(file, '/'))) { | ||
*++p = '.'; | if (strcmp(p, "/.") == 0) { | ||
*++p = CNULL; | *p = CNULL; | ||
} else { | |||
*++p = '.'; | |||
*++p = CNULL; | |||
} | |||
} else { | } else { | ||
/* | /* | ||
* Couldn't find anything, so give up. | * Couldn't find anything, so give up. |