mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
* vfs.c (vfs_parse_ls_lga): Warning fix if st_nlink is unsigned.
Disallow st_nlink = 0.
This commit is contained in:
parent
18831a11b0
commit
efe396e30e
@ -1,3 +1,8 @@
|
|||||||
|
2001-08-19 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* vfs.c (vfs_parse_ls_lga): Warning fix if st_nlink is unsigned.
|
||||||
|
Disallow st_nlink = 0.
|
||||||
|
|
||||||
2001-08-18 Pavel Roskin <proski@gnu.org>
|
2001-08-18 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* cpio.c (cpio_read_head): Check return value of cpio_find_head,
|
* cpio.c (cpio_read_head): Check return value of cpio_find_head,
|
||||||
|
@ -1659,7 +1659,7 @@ vfs_parse_ls_lga (const char *p, struct stat *s, char **filename, char **linknam
|
|||||||
num_cols = vfs_split_text (p_copy);
|
num_cols = vfs_split_text (p_copy);
|
||||||
|
|
||||||
s->st_nlink = atol (columns [0]);
|
s->st_nlink = atol (columns [0]);
|
||||||
if (s->st_nlink < 0)
|
if (s->st_nlink <= 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if (!is_num (1))
|
if (!is_num (1))
|
||||||
|
Loading…
Reference in New Issue
Block a user