-# bootstrap.conf (Recode) version 2018-01-15
+# bootstrap.conf (Recode) version 2018-01-17
# This file is part of Recode.
#
gnulib_modules='
argmatch
bootstrap
+ canonicalize-lgpl
error
getopt-posix
gettext-h
#include "common.h"
+#include <stdlib.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
struct stat file_stat;
struct utimbuf file_utime;
- input_name = argv[optind];
+ input_name = realpath (argv[optind], NULL);
+ if (input_name == NULL)
+ error (EXIT_FAILURE, errno, "realpath (%s)", argv[optind]);
+
output_name = xmalloc (strlen (input_name) + 17 + 1); /* 17 is upper limit for rec%d.tmp where %d is pid_t */
/* Check if the file can be read and rewritten. */