diff options
Diffstat (limited to 'miscutils/crontab.c')
-rw-r--r-- | miscutils/crontab.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/miscutils/crontab.c b/miscutils/crontab.c index 673b558c3..902014963 100644 --- a/miscutils/crontab.c +++ b/miscutils/crontab.c | |||
@@ -130,11 +130,7 @@ int crontab_main(int argc UNUSED_PARAM, char **argv) | |||
130 | if (!pas) | 130 | if (!pas) |
131 | bb_error_msg_and_die("user %s is not known", user_name); | 131 | bb_error_msg_and_die("user %s is not known", user_name); |
132 | } else { | 132 | } else { |
133 | /* XXX: xgetpwuid */ | 133 | pas = xgetpwuid(getuid()); |
134 | uid_t my_uid = getuid(); | ||
135 | pas = getpwuid(my_uid); | ||
136 | if (!pas) | ||
137 | bb_perror_msg_and_die("unknown uid %d", (int)my_uid); | ||
138 | } | 134 | } |
139 | 135 | ||
140 | #define user_name DONT_USE_ME_BEYOND_THIS_POINT | 136 | #define user_name DONT_USE_ME_BEYOND_THIS_POINT |