← Commit list

fe215e35d

Denys Vlasenko
Denys Vlasenko
2026-08-31
SUCCESS Duration: 154s

Subject

devfsd: heed warnings

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/devfsd.c+2 -2
@@ -1016,9 +1016,9 @@ static void restore(char *spath, struct stat source_stat, int rootlen)
dest_stat.st_mode = 0;
dpath = concat_path_file(mount_point, spath + rootlen);
lstat(dpath, &dest_stat);
- free(dpath);
if (S_ISLNK(source_stat.st_mode) || (source_stat.st_mode & S_ISVTX))
copy_inode(dpath, &dest_stat, (source_stat.st_mode & ~S_ISVTX), spath, &source_stat);
+ free(dpath);
if (S_ISDIR(source_stat.st_mode))
dir_operation(RESTORE, spath, rootlen, NULL);
@@ -1271,7 +1271,7 @@ static void dir_operation(int type, const char * dir_name, int var, unsigned lon
while ((de = readdir(dp)) != NULL) {
- if (de->d_name && DOT_OR_DOTDOT(de->d_name))
+ if (DOT_OR_DOTDOT(de->d_name))
continue;
path = concat_path_file(dir_name, de->d_name);
if (lstat(path, &statbuf) == 0) {