public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] emacs r1163 - emacs-daemon
@ 2008-11-16 17:46 Ulrich Mueller (ulm)
  0 siblings, 0 replies; only message in thread
From: Ulrich Mueller (ulm) @ 2008-11-16 17:46 UTC (permalink / raw
  To: gentoo-commits

Author: ulm
Date: 2008-11-16 17:46:57 +0000 (Sun, 16 Nov 2008)
New Revision: 1163

Modified:
   emacs-daemon/ChangeLog
   emacs-daemon/emacs.rc
Log:
Use "checkpath" builtin function.

Modified: emacs-daemon/ChangeLog
===================================================================
--- emacs-daemon/ChangeLog	2008-11-14 12:55:23 UTC (rev 1162)
+++ emacs-daemon/ChangeLog	2008-11-16 17:46:57 UTC (rev 1163)
@@ -1,3 +1,7 @@
+2008-11-16  Ulrich Mueller  <ulm@gentoo.org>
+
+	* emacs.rc (checkconfig): Use "checkpath" builtin function.
+
 2008-11-13  Ulrich Mueller  <ulm@gentoo.org>
 
 	* Version 0.6 released.

Modified: emacs-daemon/emacs.rc
===================================================================
--- emacs-daemon/emacs.rc	2008-11-14 12:55:23 UTC (rev 1162)
+++ emacs-daemon/emacs.rc	2008-11-16 17:46:57 UTC (rev 1163)
@@ -31,13 +31,8 @@
 	return 1
     fi
 
-    if [ ! -d "${PIDFILE_DIR}" ]; then
-	ewarn "Directory ${PIDFILE_DIR} does not exist - creating it"
-	mkdir -p "${PIDFILE_DIR}"
-	chown "${USER}" "${PIDFILE_DIR}"
-    fi
-
-    return 0
+    checkpath -d --owner root:root --mode 0755 "${PIDFILE_DIR%/*}"
+    checkpath -d --owner "${USER}" --mode 0755 "${PIDFILE_DIR}"
 }
 
 start() {




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-16 17:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-16 17:46 [gentoo-commits] emacs r1163 - emacs-daemon Ulrich Mueller (ulm)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox