{
if (t.tv_sec < 0)
warnopt (WARN_TIMESTAMP, 0, _("%s: implausibly old time stamp %s"),
- file_name, tartime (t, true));
+ quotearg_colon (file_name), tartime (t, true));
else if (timespec_cmp (volume_start_time, t) < 0)
{
struct timespec now;
diff.tv_sec--;
}
warnopt (WARN_TIMESTAMP, 0, _("%s: time stamp %s is %s s in the future"),
- file_name, tartime (t, true), code_timespec (diff, buf));
+ quotearg_colon (file_name), tartime (t, true),
+ code_timespec (diff, buf));
}
}
}
switch (old_files_option)
{
case SKIP_OLD_FILES:
- warnopt (WARN_EXISTING_FILE, 0, _("%s: skipping existing file"), file_name);
+ warnopt (WARN_EXISTING_FILE, 0, _("%s: skipping existing file"),
+ quotearg_colon (file_name));
return RECOVER_SKIP;
case KEEP_OLD_FILES:
warnopt (WARN_XATTR_WRITE, errno,
_("acl_delete_def_file_at: Cannot drop default POSIX ACLs "
"for file '%s'"),
- file_name);
+ quote (file_name));
return;
}
else
/* warn even if filesystem does not support acls */
warnopt (WARN_XATTR_WRITE, errno,
_ ("acl_set_file_at: Cannot set POSIX ACLs for file '%s'"),
- file_name);
+ quote (file_name));
acl_free (acl);
}
if (ret < 0)
warnopt (WARN_XATTR_WRITE, errno,
_("%s: Cannot set '%s' extended attribute for file '%s'"),
- sysname, attr, file_name);
+ sysname, attr, quote (file_name));
}
}
#endif
if (ret < 0)
warnopt (WARN_XATTR_WRITE, errno,
_("%s: Cannot set SELinux context for file '%s'"),
- sysname, file_name);
+ sysname, quote (file_name));
#endif
}
}
/* TRANSLATORS: The first %s is the pax extended header keyword
(atime, gid, etc.). */
paxerror (0, _("Extended header %s=%s is out of range %jd..%ju"),
- keyword, value, minval, maxval);
+ keyword, quote (value), minval, maxval);
}
static void
TYPE_MAXIMUM (time_t));
else
paxerror (0, _("Malformed extended header: invalid %s=%s"),
- keyword, arg);
+ keyword, quote (arg));
return false;
}
if (*arg_lim)
{
paxerror (0, _("Malformed extended header: invalid %s=%s"),
- keyword, arg);
+ keyword, quote (arg));
return false;
}
if ((arg_lim == arg) | *arg_lim)
{
paxerror (0, _("Malformed extended header: invalid %s=%s"),
- keyword, arg);
+ keyword, quote (arg));
return false;
}
if (delim == arg)
{
paxerror (0, _("Malformed extended header: invalid %s=%s"),
- keyword, arg);
+ keyword, quote (arg));
return;
}
else
{
paxerror (0, _("Malformed extended header: excess %s=%s"),
- keyword, arg);
+ keyword, quote (arg));
return;
}
}