summarylogtreecommitdiffstats
path: root/gnokii-lock.patch
diff options
context:
space:
mode:
authorAntonio Rojas2021-05-08 09:13:19 +0000
committerAntonio Rojas2021-05-08 09:13:19 +0000
commit6b8b0666bee69d4bf4609301f5ad2db683c234f2 (patch)
treefe54c8f58a79811eefc2eeceafcaf20c2b8b60d4 /gnokii-lock.patch
downloadaur-gnokii.tar.gz
Dropped from repos
Diffstat (limited to 'gnokii-lock.patch')
-rw-r--r--gnokii-lock.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/gnokii-lock.patch b/gnokii-lock.patch
new file mode 100644
index 000000000000..61bcfaf405fb
--- /dev/null
+++ b/gnokii-lock.patch
@@ -0,0 +1,15 @@
+diff -Naur gnokii-0.6.31.orig/common/misc.c gnokii-0.6.31/common/misc.c
+--- gnokii-0.6.31.orig/common/misc.c 2011-12-02 15:53:04.000000000 +0100
++++ gnokii-0.6.31/common/misc.c 2013-08-12 18:38:41.021668458 +0200
+@@ -448,9 +448,9 @@
+
+ #define BUFFER_MAX_LENGTH 128
+ #if defined (__svr4__)
+-# define lock_path "/var/run/LCK.."
++# define lock_path "/var/run/lockdev/LCK.."
+ #else
+-# define lock_path "/var/lock/LCK.."
++# define lock_path "/var/lock/lockdev/LCK.."
+ #endif
+
+ /* Lock the device. Return allocated string with a lock name */