- Timestamp:
- Nov 19, 2006, 2:11:58 AM (18 years ago)
- Location:
- branches/stable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/mindi
r948 r949 1093 1093 AddFileToCfgIfExists $MINDI_TMP/BACKUP-MEDIA-TYPE backup-media-type $outfile 1094 1094 AddFileToCfgIfExists $MINDI_TMP/DIFFERENTIAL differential $outfile 1095 AddFileToCfgIfExists $MINDI_TMP/ACL acl $outfile 1096 AddFileToCfgIfExists $MINDI_TMP/XATTR xattr $outfile 1095 1097 } 1096 1098 -
branches/stable/mondo/src/common/libmondo-archive.c
r948 r949 693 693 /*@ buffer ************************************************************ */ 694 694 char *tmp; 695 char *tmp1 = NULL; 695 696 char *scratchdir; 696 697 char *command; … … 959 960 } else { 960 961 res += write_one_liner_data_file(tmp, "0"); 962 } 963 964 if (g_getfattr) { 965 asprintf(&tmp1, "%s/XATTR", bkpinfo->tmpdir); 966 if (write_one_liner_data_file(tmp1, "TRUE")) { 967 log_msg(1, "%ld: Unable to write one-liner XATTR", 968 __LINE__); 969 } 970 paranoid_free(tmp1); 971 } 972 if (g_getfacl) { 973 asprintf(&tmp1, "%s/ACL", bkpinfo->tmpdir); 974 if (write_one_liner_data_file(tmp1, "TRUE")) { 975 log_msg(1, "%ld: Unable to write one-liner ACL", 976 __LINE__); 977 } 978 paranoid_free(tmp1); 961 979 } 962 980 -
branches/stable/mondo/src/mondoarchive/mondo-cli.c
r948 r949 356 356 char *q; 357 357 358 long itbs ;358 long itbs = 0L; 359 359 360 360 struct stat buf; … … 675 675 asprintf(&g_getfacl,"getfacl"); 676 676 } 677 }678 677 } 679 678 -
branches/stable/mondo/src/mondorestore/mondo-rstr-tools.c
r913 r949 161 161 extern int g_partition_table_locked_up; 162 162 163 /* Should we use or not extended attributes and acl when restoring */ 164 char *g_getfattr = NULL; 165 char *g_getfacl = NULL; 166 163 167 /** 164 168 * @addtogroup restoreUtilityGroup … … 1099 1103 bkpinfo->use_star = TRUE; 1100 1104 log_msg(1, "Goody! ... bkpinfo->use_star is now true."); 1105 } 1106 1107 read_cfg_var(cfg_file, "acl", value); 1108 if (strstr(value, "TRUE")) { 1109 asprintf(&g_getfacl,"setfacl"); 1110 log_msg(1, "We will restore ACLs"); 1111 if (! find_home_of_exe(setfacl)) { 1112 log_msg(1, "Unable to restore ACLs as no setfacl found"); 1113 } 1114 } 1115 read_cfg_var(cfg_file, "xattr", value); 1116 if (strstr(value, "TRUE")) { 1117 asprintf(&g_getfattr,"setfattr"); 1118 log_msg(1, "We will restore XATTRs"); 1119 if (! find_home_of_exe(setfattr)) { 1120 log_msg(1, "Unable to restore XATTRs as no setfattr found"); 1121 } 1101 1122 } 1102 1123
Note:
See TracChangeset
for help on using the changeset viewer.