summaryrefslogtreecommitdiff
path: root/src/patch.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@gnu.org>2020-05-14 12:36:11 +0200
committerAndreas Gruenbacher <agruen@gnu.org>2020-05-14 14:01:13 +0200
commit099394003477b83c2eb4be07fd0173d6e696cf4e (patch)
tree12c8f980a170764423b1266d8979de6ccb99d310 /src/patch.c
parent78ed9decdf54d6185d3d3d1ef8784f5978f81422 (diff)
downloadpatch-099394003477b83c2eb4be07fd0173d6e696cf4e.tar.gz
gnulib: update to latest
* bootstrap: Update. * bootstrap.conf (gnulib_modules): Replace getdate with parse-datetime, malloc with malloc-gnu, and realloc with realloc-gnu. * src/patch.c (main): Function find_backup_file_name has gained a new dir_fd argument. * src/util.c (create_backup): Likewise. (fetchname): Function get_date has been renamed to parse_datetime.
Diffstat (limited to 'src/patch.c')
-rw-r--r--src/patch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/patch.c b/src/patch.c
index 3794319..73d140f 100644
--- a/src/patch.c
+++ b/src/patch.c
@@ -645,7 +645,7 @@ main (int argc, char **argv)
const char *s = simple_backup_suffix;
size_t len;
simple_backup_suffix = ".rej";
- rej = find_backup_file_name (outname, simple_backups);
+ rej = find_backup_file_name (AT_FDCWD, outname, simple_backups);
len = strlen (rej);
if (rej[len - 1] == '~')
rej[len - 1] = '#';