D | symlinks.c | 117 static int shorten_path (char *path, char *abspath) in shorten_path() argument 124 while (abspath && strlen(abspath) > 1 && (p = strstr(path,"../"))) { in shorten_path() 143 a = abspath + strlen(abspath) - 1; in shorten_path() 145 if (a <= abspath) in shorten_path() 148 if (a <= abspath) in shorten_path() 164 static char lpath[PATH_MAX], new[PATH_MAX], abspath[PATH_MAX]; in fix_symlink() local 176 abspath[0] = '\0'; in fix_symlink() 178 strcat(abspath,path); in fix_symlink() 179 c = strlen(abspath); in fix_symlink() 180 if ((c > 0) && (abspath[c-1] == '/')) in fix_symlink() [all …]
|