summaryrefslogtreecommitdiffstats
path: root/login-utils
diff options
context:
space:
mode:
Diffstat (limited to 'login-utils')
-rw-r--r--login-utils/login.c2
-rw-r--r--login-utils/shutdown.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/login-utils/login.c b/login-utils/login.c
index 1af87925a..9b02358c4 100644
--- a/login-utils/login.c
+++ b/login-utils/login.c
@@ -1335,7 +1335,7 @@ rootterm(char * ttyn)
char buf[100],*p;
int cnt, more = 0;
- fd = open(SECURETTY, O_RDONLY);
+ fd = open(_PATH_SECURETTY, O_RDONLY);
if(fd < 0) return 1;
/* read each line in /etc/securetty, if a line matches our ttyline
diff --git a/login-utils/shutdown.c b/login-utils/shutdown.c
index 189c36af3..5cbe803d5 100644
--- a/login-utils/shutdown.c
+++ b/login-utils/shutdown.c
@@ -105,6 +105,8 @@ char halt_action[256]; /* to find out what to do upon halt */
#define WRCRLF write(fd, "\r\n", 2)
#define ERRSTRING strerror(errno)
+#define UMOUNT_ARGS "umount", "-a", "-t", "nodevfs"
+#define SWAPOFF_ARGS "swapoff", "-a"
void
usage(void)