Files
ports/devel/patch/files/patch-src_safe.c
T
Alexey Dokuchaev edb0110477 devel/patch: update GNU patch to the latest version 2.8
- 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
2026-03-11 01:29:52 +00:00

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);
}