Some changes were against the style of lib/file. Fix this.
} else {
struct stat statbuf;
- if (-1 == Posix_Stat(dstName, &statbuf)) {
+ if (Posix_Stat(dstName, &statbuf) == -1) {
int err = Err_Errno();
- if (ENOENT == err) {
+ if (err == ENOENT) {
if (!File_CreateDirectoryHierarchy(dstName, NULL)) {
Msg_Append(MSGID(File.MoveTree.dst.couldntCreate)
"Could not create '%s'.\n\n", dstName);
* effective user with permissions 'mode'.
*/
- if (0 == Posix_Lstat(dirname, &st)) {
+ if (Posix_Lstat(dirname, &st) == 0) {
/*
* Our directory inherited S_ISGID if its parent had it. So it
* is important to ignore that bit, and it is safe to do so