fix a bug in linux devfs support.
This commit is contained in:
parent
8fe3b6de83
commit
8593e88271
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2000-12-09 OKUJI Yoshinori <okuji@gnu.org>
|
||||||
|
|
||||||
|
* lib/device.c [__linux__] (write_to_partition): Use strcpy
|
||||||
|
instead of strcat, to overwrite "/disc". Reported by Thiago
|
||||||
|
Macieira <thiagom@mail.com>.
|
||||||
|
|
||||||
2000-12-05 Jochen Hoenicke <jochen@gnu.org>
|
2000-12-05 Jochen Hoenicke <jochen@gnu.org>
|
||||||
|
|
||||||
* stage2/fsys_minix.c (minix_mount): Corrected the check for
|
* stage2/fsys_minix.c (minix_mount): Corrected the check for
|
||||||
|
|
|
@ -618,7 +618,7 @@ write_to_partition (char **map, int drive, int partition,
|
||||||
if (have_devfs ())
|
if (have_devfs ())
|
||||||
{
|
{
|
||||||
if (strcmp (dev + strlen(dev) - 5, "/disc") == 0)
|
if (strcmp (dev + strlen(dev) - 5, "/disc") == 0)
|
||||||
strcat (dev + strlen(dev) - 5, "/part");
|
strcpy (dev + strlen(dev) - 5, "/part");
|
||||||
}
|
}
|
||||||
sprintf (dev + strlen(dev), "%d", ((partition >> 16) & 0xFF) + 1);
|
sprintf (dev + strlen(dev), "%d", ((partition >> 16) & 0xFF) + 1);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue