← Commit list

436223e2b

Anton Skorup
Anton Skorup
2026-08-30
SUCCESS Duration: 151s

Subject

tar: Sanitize verbose file names

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
gcc -Wp,-MD,applets/.usage.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer      -Iinclude -Iinclude -o applets/usage applets/usage.c

Build Log

(log yok)

Commit Diff GitHub →

archival/tar.c+1 -1
@@ -428,7 +428,7 @@ static int writeTarHeader(struct TarBallInfo *tbInfo,
/* GNU "tar cvvf" prints "extended" listing a-la "ls -l" */
/* We don't have such excesses here: for us "v" == "vv" */
/* '/' is probably a GNUism */
- fprintf(vbFd, "%s%s\n", header_name,
+ fprintf(vbFd, "%s%s\n", printable_string(header_name),
S_ISDIR(statbuf->st_mode) ? "/" : "");
}