Home | History | Annotate | Download | only in utils

Lines Matching full:path

81 //  filecap /path/dir
82 // filecap /path/file
83 // filecap /path/file capability1 capability2 capability 3 ...
90 char *path_env, *path = NULL, *dir = NULL;
112 printf("Error checking path %s (%s)\n",
119 if (S_ISREG(sbuf.st_mode) && path == NULL &&
121 path = argv[i];
123 } else if (S_ISDIR(sbuf.st_mode) && path == NULL
134 if (path == NULL)
151 if (path == NULL && dir == NULL && show_all == 0) {
152 path_env = getenv("PATH");
154 path = strdup(path_env);
155 for (dir=strtok(path,":"); dir!=NULL;
159 free(path);
161 } else if (path == NULL && dir == NULL && show_all == 1) {
167 }else if (path && capabilities == 0) {
169 check_file(path, &sbuf, 0, NULL);
170 } else if (path && capabilities == 1) {
172 int fd = open(path, O_WRONLY|O_NOFOLLOW|O_CLOEXEC);
174 printf("Could not open %s for writing (%s)\n", path,