* util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-10-15 21:25:18 +02:00
parent bacfefbb0e
commit 593816780e
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
* util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
2013-10-15 Vladimir Serbinenko <phcoder@gmail.com> 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-editenv.c (create_envblk_file): More from here ... * util/grub-editenv.c (create_envblk_file): More from here ...

View file

@ -57,7 +57,7 @@ grub_util_create_envblk_file (const char *name)
free (buf); free (buf);
fclose (fp); fclose (fp);
if (rename (namenew, name) < 0) if (grub_util_rename (namenew, name) < 0)
grub_util_error (_("cannot rename the file %s to %s"), namenew, name); grub_util_error (_("cannot rename the file %s to %s"), namenew, name);
free (namenew); free (namenew);
} }