diff options
Diffstat (limited to 'lib/getusershell.c')
| -rw-r--r-- | lib/getusershell.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/getusershell.c b/lib/getusershell.c index 75163ac26..93d5e438e 100644 --- a/lib/getusershell.c +++ b/lib/getusershell.c @@ -100,16 +100,8 @@ void setusershell () { default_index = 0; - if (shellstream == NULL) - shellstream = fopen (SHELLS_FILE, "r"); - else - { -#ifdef HAVE_FSEEKO - fseeko (shellstream, 0, 0); -#else - fseek (shellstream, 0L, 0); -#endif - } + if (shellstream) + rewind (shellstream); } /* Close the shells file. */ |
