[Midnightbsd-cvs] src [7510] trunk/lib/libmport/bundle_read_install_pkg.c: hide debug messages
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Apr 9 16:29:50 EDT 2016
Revision: 7510
http://svnweb.midnightbsd.org/src/?rev=7510
Author: laffer1
Date: 2016-04-09 16:29:50 -0400 (Sat, 09 Apr 2016)
Log Message:
-----------
hide debug messages
Modified Paths:
--------------
trunk/lib/libmport/bundle_read_install_pkg.c
Modified: trunk/lib/libmport/bundle_read_install_pkg.c
===================================================================
--- trunk/lib/libmport/bundle_read_install_pkg.c 2016-04-09 20:26:21 UTC (rev 7509)
+++ trunk/lib/libmport/bundle_read_install_pkg.c 2016-04-09 20:29:50 UTC (rev 7510)
@@ -296,15 +296,21 @@
if (type == ASSET_FILE_OWNER_MODE) {
/* Test for owner and group settings, otherwise roll with our default. */
if (fm_owner != NULL && fm_group != NULL && fm_owner[0] != '\0' && fm_group[0] != '\0') {
+#ifdef DEBUG
fprintf(stderr, "owner %s and group %s\n", fm_owner, fm_group);
+#endif
if (chown(file, mport_get_uid(fm_owner), mport_get_gid(fm_group)) == -1)
goto ERROR;
} else if (fm_owner != NULL && fm_owner[0] != '\0') {
+#ifdef DEBUG
fprintf(stderr, "owner %s\n", fm_owner);
+#endif
if (chown(file, mport_get_uid(fm_owner), group) == -1)
goto ERROR;
} else if (fm_group != NULL && fm_group[0] != '\0') {
+#ifdef DEBUG
fprintf(stderr, "group %s\n", fm_group);
+#endif
if (chown(file, owner, mport_get_gid(fm_group)) == -1)
goto ERROR;
} else {
More information about the Midnightbsd-cvs
mailing list