forked from Imagelibrary/rtems
main_cp.c: Ignore return value from stat()
CID 26051: Unchecked return value from library in main_cp(). Closes #4365
This commit is contained in:
@@ -255,8 +255,14 @@ main_cp(rtems_shell_cp_globals* cp_globals, int argc, char *argv[])
|
||||
*/
|
||||
if (r == -1) {
|
||||
if (Rflag && (Lflag || Hflag))
|
||||
#ifdef __rtems__
|
||||
(void)
|
||||
#endif
|
||||
stat(*argv, &tmp_stat);
|
||||
else
|
||||
#ifdef __rtems__
|
||||
(void)
|
||||
#endif
|
||||
lstat(*argv, &tmp_stat);
|
||||
|
||||
if (S_ISDIR(tmp_stat.st_mode) && Rflag)
|
||||
|
||||
Reference in New Issue
Block a user