diff options
| author | Michael Forney <mforney@mforney.org> | 2025-04-29 16:35:44 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2025-04-29 18:08:11 -0700 |
| commit | 06624ed7867c902e0ca44b5ca381e9d4dc157e14 (patch) | |
| tree | b599a63619db2f17915395b1b7c01025a6181159 /pkg/openbsd/patch/0009-patch-Avoid-d_namlen.patch | |
| parent | f14538ac33402854509d46e1a7bdaae091c2fb80 (diff) | |
openbsd: Update to 7.7
Diffstat (limited to 'pkg/openbsd/patch/0009-patch-Avoid-d_namlen.patch')
| -rw-r--r-- | pkg/openbsd/patch/0009-patch-Avoid-d_namlen.patch | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/pkg/openbsd/patch/0009-patch-Avoid-d_namlen.patch b/pkg/openbsd/patch/0009-patch-Avoid-d_namlen.patch deleted file mode 100644 index 2c934216..00000000 --- a/pkg/openbsd/patch/0009-patch-Avoid-d_namlen.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 602381b693ff286ed17a9a04bfceaeb255992843 Mon Sep 17 00:00:00 2001 -From: Michael Forney <mforney@mforney.org> -Date: Sat, 4 Jun 2016 18:40:37 -0700 -Subject: [PATCH] patch: Avoid d_namlen - ---- - usr.bin/patch/backupfile.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/usr.bin/patch/backupfile.c b/usr.bin/patch/backupfile.c -index ed0767762e0..fc05e48e68d 100644 ---- a/usr.bin/patch/backupfile.c -+++ b/usr.bin/patch/backupfile.c -@@ -106,7 +106,7 @@ max_backup_version(const char *file, const char *dir) - file_name_length = strlen(file); - - while ((dp = readdir(dirp)) != NULL) { -- if (dp->d_namlen <= file_name_length) -+ if (strlen(dp->d_name) <= file_name_length) - continue; - - this_version = version_number(file, dp->d_name, file_name_length); --- -2.31.1 - |
