* UPD: afdp: Automatic name conversion, renaming files and directories
containing CAP sequences to their not enscaped forms
* UPD: afpd: Correct handling of user homes and users without homes
+* UPD: afpd: Perform complete automatic adouble:v2 to adouble:ea conversion
+ as root. Previously only unlinking the adouble:v2 file was done as root
* UPD: dbd: -C option removes CAP encoding
* UPD: Add graceful option to RedHat init script
* UPD: Add --disable-bundled-libevent configure options When set to yes,
copy:
/* Create a adouble:ea meta EA */
LOG(log_debug, logtype_default,"ad_conv_v22ea_hf(\"%s\"): copying adouble", fullpathname(path), ret);
- EC_ZERO_LOG( ad_open(&adea, path, adflags | ADFLAGS_HF | ADFLAGS_RDWR | ADFLAGS_CREATE) );
+ EC_ZERO_LOGSTR( ad_open(&adea, path, adflags | ADFLAGS_HF | ADFLAGS_RDWR | ADFLAGS_CREATE),
+ "ad_conv_v22ea_hf(\"%s\"): error creating metadata EA: %s",
+ fullpathname(path), strerror(errno));
EC_ZERO_LOG( ad_copy_header(&adea, &adv2) );
ad_flush(&adea);
const char *adpath;
int adflags = S_ISDIR(sp->st_mode) ? ADFLAGS_DIR : 0;
+ become_root();
+
EC_ZERO( ad_conv_v22ea_hf(path, sp, vol) );
EC_ZERO( ad_conv_v22ea_rf(path, sp, vol) );
LOG(log_debug, logtype_default,"ad_conv_v22ea_hf(\"%s\"): deleting adouble:v2 file: \"%s\"",
path, fullpathname(adpath));
- become_root();
- EC_ZERO_LOG( unlink(adpath) );
- unbecome_root();
+ unlink(adpath);
EC_CLEANUP:
if (errno == ENOENT)
EC_STATUS(0);
+
+ unbecome_root();
+
EC_EXIT;
}