Introduction
Introduction Statistics Contact Development Disclaimer Help
make error message prefix consistent - slock - simple X display locker utility
git clone git://git.suckless.org/slock
Log
Files
Refs
README
LICENSE
---
commit 9698224090ff2989659717815bfa076d5d436a70
parent a55594fdd69fcfcc10b8c9624d5aba298969d713
Author: Markus Teich <[email protected]>
Date: Wed, 7 Sep 2016 10:04:06 +0200
make error message prefix consistent
Diffstat:
M slock.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/slock.c b/slock.c
@@ -99,9 +99,9 @@ getpw(void)
errno = 0;
if (!(pw = getpwuid(getuid()))) {
if (errno)
- die("getpwuid: %s\n", strerror(errno));
+ die("slock: getpwuid: %s\n", strerror(errno));
else
- die("cannot retrieve password entry\n");
+ die("slock: cannot retrieve password entry\n");
}
rval = pw->pw_passwd;
@@ -109,7 +109,7 @@ getpw(void)
if (rval[0] == 'x' && rval[1] == '\0') {
struct spwd *sp;
if (!(sp = getspnam(getenv("USER"))))
- die("cannot retrieve shadow entry (make sure to suid o…
+ die("slock: cannot retrieve shadow entry (make sure to…
rval = sp->sp_pwdp;
}
#endif
@@ -117,7 +117,7 @@ getpw(void)
/* drop privileges */
if (geteuid() == 0 &&
((getegid() != pw->pw_gid && setgid(pw->pw_gid) < 0) || setuid(pw-…
- die("cannot drop privileges\n");
+ die("slock: cannot drop privileges\n");
return rval;
}
#endif
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.