mirror of
https://github.com/slicer69/doas
synced 2024-09-06 16:35:54 +00:00
Removed unused login_style variable on Linux. Is only
used when using BSD authorization.
This commit is contained in:
parent
2f83222829
commit
1c2858c681
5
doas.c
5
doas.c
|
@ -329,7 +329,9 @@ main(int argc, char **argv)
|
|||
int nflag = 0;
|
||||
char cwdpath[PATH_MAX];
|
||||
const char *cwd;
|
||||
#if defined(USE_BSD_AUTH)
|
||||
char *login_style = NULL;
|
||||
#endif
|
||||
char **envp;
|
||||
|
||||
#ifndef linux
|
||||
|
@ -343,11 +345,12 @@ main(int argc, char **argv)
|
|||
uid = getuid();
|
||||
|
||||
while ((ch = getopt(argc, argv, "a:C:nsu:")) != -1) {
|
||||
/* while ((ch = getopt(argc, argv, "a:C:Lnsu:")) != -1) { */
|
||||
switch (ch) {
|
||||
#if defined(USE_BSD_AUTH)
|
||||
case 'a':
|
||||
login_style = optarg;
|
||||
break;
|
||||
#endif
|
||||
case 'C':
|
||||
confpath = optarg;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue