]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - ppp/patches/0020-pppd-put-lock-files-in-var-lock-ppp.patch
ppp: Update to 2.4.6.
[ipfire-3.x.git] / ppp / patches / 0020-pppd-put-lock-files-in-var-lock-ppp.patch
diff --git a/ppp/patches/0020-pppd-put-lock-files-in-var-lock-ppp.patch b/ppp/patches/0020-pppd-put-lock-files-in-var-lock-ppp.patch
new file mode 100644 (file)
index 0000000..af878ce
--- /dev/null
@@ -0,0 +1,26 @@
+From c5a5f795b1defcb6d168e79c4d1fc371dfc556ca Mon Sep 17 00:00:00 2001
+From: Jiri Skala <jskala@redhat.com>
+Date: Wed, 9 Apr 2014 09:29:50 +0200
+Subject: [PATCH 20/25] pppd: put lock files in /var/lock/ppp
+
+Resolves: #708260
+---
+ pppd/utils.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pppd/utils.c b/pppd/utils.c
+index 6051b9a..8407492 100644
+--- a/pppd/utils.c
++++ b/pppd/utils.c
+@@ -846,7 +846,7 @@ complete_read(int fd, void *buf, size_t count)
+ /* Procedures for locking the serial device using a lock file. */
+ #ifndef LOCK_DIR
+ #ifdef __linux__
+-#define LOCK_DIR      "/var/lock"
++#define LOCK_DIR      "/var/lock/ppp"
+ #else
+ #ifdef SVR4
+ #define LOCK_DIR      "/var/spool/locks"
+-- 
+1.8.3.1
+