diff options
author | Sami Kerola | 2016-03-08 23:13:38 +0100 |
---|---|---|
committer | Karel Zak | 2016-03-09 11:44:05 +0100 |
commit | 652822e08b77aba0d35634f54d8acb484c1749f5 (patch) | |
tree | d880e235a86ea2b2b476897b430a7db396126fc2 /include/pathnames.h | |
parent | tests: mark script race test as "known fail" (diff) | |
download | kernel-qcow2-util-linux-652822e08b77aba0d35634f54d8acb484c1749f5.tar.gz kernel-qcow2-util-linux-652822e08b77aba0d35634f54d8acb484c1749f5.tar.xz kernel-qcow2-util-linux-652822e08b77aba0d35634f54d8acb484c1749f5.zip |
misc: remove path name definitions that are unused
After this commit the following produces zero matches.
$ for i in \
_PATH_DEV_TTY \
_PATH_INITTAB \
_PATH_MNTTAB_DIR \
_PATH_MOUNTED_LOCK \
_PATH_MOUNTED_TMP \
_PATH_RC \
_PATH_REBOOT \
_PATH_SECURE \
_PATH_SECURETTY \
_PATH_SHUTDOWN_CONF \
_PATH_SINGLE \
_PATH_UMOUNT \
_PATH_USERTTY
do git grep $i; done
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'include/pathnames.h')
-rw-r--r-- | include/pathnames.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/pathnames.h b/include/pathnames.h index 81efcfa81..de6a13c3a 100644 --- a/include/pathnames.h +++ b/include/pathnames.h @@ -35,7 +35,6 @@ # define _PATH_DEFPATH_ROOT "/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" #endif -#define _PATH_SECURETTY "/etc/securetty" #define _PATH_WTMPLOCK "/etc/wtmplock" #define _PATH_HUSHLOGIN ".hushlogin" @@ -51,15 +50,7 @@ #define _PATH_VAR_NOLOGIN "/var/run/nologin" #define _PATH_LOGIN "/bin/login" -#define _PATH_INITTAB "/etc/inittab" -#define _PATH_RC "/etc/rc" -#define _PATH_REBOOT "/sbin/reboot" #define _PATH_SHUTDOWN "/sbin/shutdown" -#define _PATH_SINGLE "/etc/singleboot" -#define _PATH_SHUTDOWN_CONF "/etc/shutdown.conf" - -#define _PATH_SECURE "/etc/securesingle" -#define _PATH_USERTTY "/etc/usertty" #define _PATH_TERMCOLORS_DIRNAME "terminal-colors.d" #define _PATH_TERMCOLORS_DIR "/etc/" _PATH_TERMCOLORS_DIRNAME @@ -91,8 +82,6 @@ #define _PATH_WORDS_ALT "/usr/share/dict/web2" /* mount paths */ -#define _PATH_UMOUNT "/bin/umount" - #define _PATH_FILESYSTEMS "/etc/filesystems" #define _PATH_PROC_SWAPS "/proc/swaps" #define _PATH_PROC_FILESYSTEMS "/proc/filesystems" @@ -136,11 +125,6 @@ # endif #endif -#define _PATH_MNTTAB_DIR _PATH_MNTTAB ".d" - -#define _PATH_MOUNTED_LOCK _PATH_MOUNTED "~" -#define _PATH_MOUNTED_TMP _PATH_MOUNTED ".tmp" - #ifndef _PATH_DEV /* * The tailing '/' in _PATH_DEV is there for compatibility with libc. @@ -152,8 +136,6 @@ #define _PATH_DEV_LOOP "/dev/loop" #define _PATH_DEV_LOOPCTL "/dev/loop-control" -#define _PATH_DEV_TTY "/dev/tty" - /* udev paths */ #define _PATH_DEV_BYLABEL "/dev/disk/by-label" |