diff options
Diffstat (limited to 'util-linux')
| -rw-r--r-- | util-linux/fdisk.c | 2 | ||||
| -rw-r--r-- | util-linux/more.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index 40a8d1bae..6e4bf6418 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c | |||
| @@ -2771,7 +2771,7 @@ tryprocpt(void) | |||
| 2771 | char line[100], ptname[100], devname[120], *s; | 2771 | char line[100], ptname[100], devname[120], *s; |
| 2772 | int ma, mi, sz; | 2772 | int ma, mi, sz; |
| 2773 | 2773 | ||
| 2774 | procpt = bb_wfopen("/proc/partitions", "r"); | 2774 | procpt = fopen_or_warn("/proc/partitions", "r"); |
| 2775 | 2775 | ||
| 2776 | while (fgets(line, sizeof(line), procpt)) { | 2776 | while (fgets(line, sizeof(line), procpt)) { |
| 2777 | if (sscanf(line, " %d %d %d %[^\n ]", | 2777 | if (sscanf(line, " %d %d %d %[^\n ]", |
diff --git a/util-linux/more.c b/util-linux/more.c index f68292e80..85209ce61 100644 --- a/util-linux/more.c +++ b/util-linux/more.c | |||
| @@ -81,7 +81,7 @@ int more_main(int argc, char **argv) | |||
| 81 | if (argc == 0) { | 81 | if (argc == 0) { |
| 82 | file = stdin; | 82 | file = stdin; |
| 83 | } else | 83 | } else |
| 84 | file = bb_wfopen(*argv, "r"); | 84 | file = fopen_or_warn(*argv, "r"); |
| 85 | if(file==0) | 85 | if(file==0) |
| 86 | goto loop; | 86 | goto loop; |
| 87 | 87 | ||
