Lines Matching refs:pDestFName

555 int wfc_util_ffile_check(char *pDestFName, int access_mode)  in wfc_util_ffile_check()  argument
559 if (access(pDestFName, access_mode) == 0) { in wfc_util_ffile_check()
560 if( stat( pDestFName, &st ) < 0 ) { in wfc_util_ffile_check()
561 wfc_util_log_error("Cannot stat the file \"%s\": %s", pDestFName, strerror(errno)); in wfc_util_ffile_check()
569 wfc_util_log_error("Cannot access \"%s\": %s", pDestFName, strerror(errno)); in wfc_util_ffile_check()
583 int wfc_util_ffile_check_copy(char *pDestFName, char *pSourceFName, mode_t mode, uid_t uID, gid_t g… in wfc_util_ffile_check_copy() argument
591 if (access(pDestFName, R_OK|W_OK) == 0) { in wfc_util_ffile_check_copy()
592 if( stat( pDestFName, &st ) < 0 ) { in wfc_util_ffile_check_copy()
593 wfc_util_log_error("Cannot stat the file \"%s\": %s", pDestFName, strerror(errno)); in wfc_util_ffile_check_copy()
602 wfc_util_log_error("Cannot access \"%s\": %s", pDestFName, strerror(errno)); in wfc_util_ffile_check_copy()
612 destfd = open(pDestFName, O_CREAT|O_WRONLY, mode); in wfc_util_ffile_check_copy()
615 wfc_util_log_error("Cannot create \"%s\": %s", pDestFName, strerror(errno)); in wfc_util_ffile_check_copy()
624 unlink(pDestFName); in wfc_util_ffile_check_copy()
645 …wfc_util_log_error("Error changing group ownership (%d) of %s to %d: %s", gid, pDestFName, gID, st… in wfc_util_ffile_check_copy()
648 if (chown(pDestFName, uID, gID) < 0) { in wfc_util_ffile_check_copy()
649 …wfc_util_log_error("Error changing group ownership of %s to %d: %s", pDestFName, gID, strerror(err… in wfc_util_ffile_check_copy()
650 unlink(pDestFName); in wfc_util_ffile_check_copy()