summaryrefslogtreecommitdiff
path: root/desktop/slock/slock-use_shadow_group.patch
diff options
context:
space:
mode:
authorGrigorios Bouzakis <grbzks@imap.cc>2012-04-01 23:18:55 -0500
committerErik Hanson <erik@slackbuilds.org>2012-04-02 17:11:22 -0500
commit117bb39d55b74532467ef880896203037fe5614b (patch)
tree6f7d1ca43d4fae4e03ba159012ac19ebba1be1bb /desktop/slock/slock-use_shadow_group.patch
parent126d4e0140bf24132eb35ab8fc19f01dcacf8589 (diff)
downloadslackbuilds-117bb39d55b74532467ef880896203037fe5614b.tar.gz
desktop/slock: Updated for version 1.0.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'desktop/slock/slock-use_shadow_group.patch')
-rw-r--r--desktop/slock/slock-use_shadow_group.patch23
1 files changed, 0 insertions, 23 deletions
diff --git a/desktop/slock/slock-use_shadow_group.patch b/desktop/slock/slock-use_shadow_group.patch
deleted file mode 100644
index 62bc1b8c03..0000000000
--- a/desktop/slock/slock-use_shadow_group.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-Patch by Robby Workman <rworkman@slackbuilds.org>
-This is trivial, and not really ideal, because it hardcodes our
-shadow group's guid (43), but oh well, it works for us. :-)
-
-diff -Nur a/slock.c b/slock.c
---- a/slock.c 2008-07-29 13:22:46.000000000 -0500
-+++ b/slock.c 2009-01-01 02:51:53.815701828 -0600
-@@ -34,12 +34,12 @@
-
- #ifndef HAVE_BSD_AUTH
- static const char *
--get_password() { /* only run as root */
-+get_password() { /* only run as shadow group - no need for suid root */
- const char *rval;
- struct passwd *pw;
-
-- if(geteuid() != 0)
-- die("slock: cannot retrieve password entry (make sure to suid slock)\n");
-+ if(getegid() != 43)
-+ die("slock: cannot retrieve password entry (make sure slock is sgid shadow)\n");
- pw = getpwuid(getuid());
- endpwent();
- rval = pw->pw_passwd;