about summary refs log tree commit diff
path: root/locale/programs
diff options
context:
space:
mode:
Diffstat (limited to 'locale/programs')
-rw-r--r--locale/programs/charmap-dir.c2
-rw-r--r--locale/programs/linereader.c2
-rw-r--r--locale/programs/locale.c2
-rw-r--r--locale/programs/locarchive.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/locale/programs/charmap-dir.c b/locale/programs/charmap-dir.c
index a7a453552b..935f662ff6 100644
--- a/locale/programs/charmap-dir.c
+++ b/locale/programs/charmap-dir.c
@@ -224,7 +224,7 @@ charmap_open (const char *directory, const char *name)
     *p++ = '/';
   p = stpcpy (p, name);
 
-  stream = fopen (pathname, "r");
+  stream = fopen (pathname, "rm");
   if (stream != NULL)
     return stream;
 
diff --git a/locale/programs/linereader.c b/locale/programs/linereader.c
index 2c6eb8d3fe..1df7df7e50 100644
--- a/locale/programs/linereader.c
+++ b/locale/programs/linereader.c
@@ -56,7 +56,7 @@ lr_open (const char *fname, kw_hash_fct_t hf)
     return lr_create (stdin, "<stdin>", hf);
   else
     {
-      fp = fopen (fname, "r");
+      fp = fopen (fname, "rm");
       if (fp == NULL)
 	return NULL;
       return lr_create (fp, fname, hf);
diff --git a/locale/programs/locale.c b/locale/programs/locale.c
index 8dea09ae1c..418698a20e 100644
--- a/locale/programs/locale.c
+++ b/locale/programs/locale.c
@@ -495,7 +495,7 @@ write_locales (void)
       char full_name[strlen (entry) + sizeof aliasfile];
 
       stpcpy (stpcpy (full_name, entry), aliasfile);
-      fp = fopen (full_name, "r");
+      fp = fopen (full_name, "rm");
       if (fp == NULL)
 	/* Ignore non-existing files.  */
 	continue;
diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c
index 2bfb0cd5d8..c7aa5b06ac 100644
--- a/locale/programs/locarchive.c
+++ b/locale/programs/locarchive.c
@@ -971,7 +971,7 @@ add_locale_to_archive (ah, name, data, replace)
   if (alias_file != NULL)
     {
       FILE *fp;
-      fp = fopen (alias_file, "r");
+      fp = fopen (alias_file, "rm");
       if (fp == NULL)
 	error (1, errno, _("locale alias file `%s' not found"),
 	       alias_file);