Print this page
10134 mv needs smatch fixes
*** 30,39 ****
--- 30,43 ----
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
+ /*
* University Copyright- Copyright (c) 1982, 1986, 1988
* The Regents of the University of California
* All Rights Reserved
*
* University Acknowledgment- Portions of this document are derived from
*** 1937,1947 ****
* Gets non default extended system attributes from the
* attribute file to copy to the target. The target has
* the defaults set when its created and thus no need
* to copy the defaults.
*/
- if (dp->d_name != NULL) {
res = sysattr_list(cmd, srcattrfd, dp->d_name);
if (res == NULL)
goto next;
/*
--- 1941,1950 ----
*** 1955,1965 ****
"Failed to copy extended system "
"attributes from attribute file "
"%s of %s to %s\n"), cmd,
dp->d_name, source, target);
}
! }
next:
if (srcattrfd != -1)
(void) close(srcattrfd);
if (targattrfd != -1)
(void) close(targattrfd);
--- 1958,1968 ----
"Failed to copy extended system "
"attributes from attribute file "
"%s of %s to %s\n"), cmd,
dp->d_name, source, target);
}
!
next:
if (srcattrfd != -1)
(void) close(srcattrfd);
if (targattrfd != -1)
(void) close(targattrfd);