Skip to content

Commit

Permalink
Fix locked error message with invalid user or group input
Browse files Browse the repository at this point in the history
* Addresses bug #101
  • Loading branch information
roberthawdon committed Jun 17, 2019
1 parent f5edf13 commit 13de112
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/showmenus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,7 @@ void modify_group_input()
int i;
int status;

groupInputLoop:
move(0,0);
clrtoeol();
mvprintw(0, 0, "Set Group:");
Expand Down Expand Up @@ -1135,6 +1136,7 @@ void modify_group_input()
if (s == 0){
sprintf(errmessage, "Invalid group: %s", groupinput);
topLineMessage(errmessage);
goto groupInputLoop;
}
} else {
sprintf(gids, "%d", gresult->gr_gid);
Expand Down Expand Up @@ -1184,6 +1186,7 @@ void modify_owner_input()
size_t bufsize;
int status;

ownerInputLoop:
move(0,0);
clrtoeol();
mvprintw(0, 0, "Set Owner:");
Expand Down Expand Up @@ -1211,6 +1214,7 @@ void modify_owner_input()
if (s == 0){
sprintf(errmessage, "Invalid user: %s", ownerinput);
topLineMessage(errmessage);
goto ownerInputLoop;
}
} else {
sprintf(uids, "%d", presult->pw_uid);
Expand Down

0 comments on commit 13de112

Please sign in to comment.