Skip to content

Commit b1e3e6c

Browse files
WavyEbuildernavi-desu
authored andcommitted
openrc-user: simplify argc check
Signed-off-by: Rahul Sandhu <[email protected]>
1 parent 35b7fd8 commit b1e3e6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openrc-user/openrc-user.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ int main(int argc, char **argv) {
6161

6262
setenv("EINFO_LOG", "openrc-user", true);
6363

64-
if (argc < 2 || argc > 2) {
64+
if (argc != 2) {
6565
elog(LOG_ERR, "Invalid usage. %s <username>", argv[0]);
6666
return -1;
6767
}

0 commit comments

Comments
 (0)