Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137941197
D48037.id147829.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
921 B
Referenced Files
None
Subscribers
None
D48037.id147829.diff
View Options
diff --git a/sysutils/lockfile-progs/files/patch-lockfile-progs.c b/sysutils/lockfile-progs/files/patch-lockfile-progs.c
new file mode 100644
--- /dev/null
+++ b/sysutils/lockfile-progs/files/patch-lockfile-progs.c
@@ -0,0 +1,28 @@
+--- lockfile-progs.c.orig 2024-12-11 18:54:17 UTC
++++ lockfile-progs.c
+@@ -278,6 +278,8 @@ get_status_code_string(int status)
+ static char*
+ get_status_code_string(int status)
+ {
++ char *err = NULL;
++
+ switch (status)
+ {
+ case L_SUCCESS:
+@@ -309,15 +311,12 @@ get_status_code_string(int status)
+ break;
+
+ default:
+- char *err = 0L;
+- int rc = asprintf(&err, "unrecognized error status (%d)", status);
+- if (rc < 0)
++ if (asprintf(&err, "unrecognized error status (%d)", status) < 0)
+ {
+ msg(stderr, "unable to generate error message");
+ exit(2);
+ }
+ return err;
+- break;
+ }
+ }
+
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 28, 12:10 PM (8 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26256231
Default Alt Text
D48037.id147829.diff (921 B)
Attached To
Mode
D48037: sysutils/lockfile-progs: Fix build in poudriere
Attached
Detach File
Event Timeline
Log In to Comment