* util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
This commit is contained in:
parent
bacfefbb0e
commit
593816780e
2 changed files with 5 additions and 1 deletions
|
@ -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 ...
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue