summaryrefslogtreecommitdiff
path: root/lib/fstree/fstree_from_file.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-01 10:38:01 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-01 11:46:40 +0200
commit569c430c61d7720919836e1fcbea27f7a0673778 (patch)
tree7cffd793c34a23110cc15c3f511f3159e185b922 /lib/fstree/fstree_from_file.c
parentd5fbb8baf0474378c863739d8ecb0213218d6b77 (diff)
Remove never used overflow error message in fstree_from_file
Bug found using scan-build. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/fstree/fstree_from_file.c')
-rw-r--r--lib/fstree/fstree_from_file.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/fstree/fstree_from_file.c b/lib/fstree/fstree_from_file.c
index 0031c09..53c2cfb 100644
--- a/lib/fstree/fstree_from_file.c
+++ b/lib/fstree/fstree_from_file.c
@@ -181,7 +181,7 @@ static int handle_line(fstree_t *fs, const char *filename,
x = line[i] - '0';
if (sb.st_uid > (0xFFFFFFFF - x) / 10)
- goto fail_ov;
+ goto fail_ent;
sb.st_uid = sb.st_uid * 10 + x;
}
@@ -200,7 +200,7 @@ static int handle_line(fstree_t *fs, const char *filename,
x = line[i] - '0';
if (sb.st_gid > (0xFFFFFFFF - x) / 10)
- goto fail_ov;
+ goto fail_ent;
sb.st_gid = sb.st_gid * 10 + x;
}
@@ -235,9 +235,6 @@ fail_no_extra:
fprintf(stderr, "%s: %zu: missing argument for %s.\n",
filename, line_num, keyword);
return -1;
-fail_ov:
- msg = "numeric overflow";
- goto fail_ent;
fail_uid_gid:
msg = "uid & gid must be decimal numbers";
goto out_desc;