edb0110477
- GC previous Debian patches, backport new upstream fixes: add missing filename quoting, enable merge, skip read-only check when output file specified, reject empty filenames - On i386, apply the same fix as Debian for Hurd/i386 - The port now seemingly builds fine with BSD make(1) - Install some standard documentation files PR: 285796
12 lines
336 B
C
12 lines
336 B
C
--- src/safe.c.orig 2025-02-27 13:33:25 UTC
|
|
+++ src/safe.c
|
|
@@ -571,6 +571,8 @@ safe_xstat (char *pathname, struct stat *buf, int flag
|
|
int dirfd = traverse_path (&pathname, false);
|
|
if (dirfd == DIRFD_INVALID)
|
|
return -1;
|
|
+ if (! strcmp (pathname, ""))
|
|
+ return EINVAL;
|
|
return fstatat (dirfd, pathname, buf, flags);
|
|
}
|
|
|