Skip to content

Commit

Permalink
changed "readonly destination directory" to a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Jul 27, 2012
1 parent 3e0e566 commit f424548
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/filedata.c
Original file line number Diff line number Diff line change
Expand Up @@ -2116,7 +2116,7 @@ gint file_data_verify_ci(FileData *fd)
}
else if (!access_file(dest_dir, W_OK))
{
ret |= CHANGE_NO_WRITE_PERM_DEST_DIR;
ret |= CHANGE_WARN_NO_WRITE_PERM_DEST_DIR;
DEBUG_1("Change checked: destination dir is readonly: %s -> %s", fd->path, fd->change->dest);
}
else if (!same)
Expand Down Expand Up @@ -2193,7 +2193,7 @@ gchar *file_data_get_error_string(gint error)
g_string_append(result, _("destination can't be overwritten"));
}

if (error & CHANGE_NO_WRITE_PERM_DEST_DIR)
if (error & CHANGE_WARN_NO_WRITE_PERM_DEST_DIR)
{
if (result->len > 0) g_string_append(result, ", ");
g_string_append(result, _("destination directory is not writable"));
Expand Down
2 changes: 1 addition & 1 deletion src/typedefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ typedef enum {
CHANGE_WARN_SAME = 1 << 2,
CHANGE_WARN_CHANGED_EXT = 1 << 3,
CHANGE_WARN_UNSAVED_META = 1 << 4,
CHANGE_WARN_NO_WRITE_PERM_DEST_DIR = 1 << 5,
CHANGE_ERROR_MASK = (~0) << 8, /* the values below are fatal errors */
CHANGE_NO_READ_PERM = 1 << 8,
CHANGE_NO_WRITE_PERM_DIR = 1 << 9,
CHANGE_NO_DEST_DIR = 1 << 10,
CHANGE_NO_WRITE_PERM_DEST_DIR = 1 << 11,
CHANGE_NO_WRITE_PERM_DEST = 1 << 12,
CHANGE_DEST_EXISTS = 1 << 13,
CHANGE_NO_SRC = 1 << 14,
Expand Down

0 comments on commit f424548

Please sign in to comment.