aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/Config.src2
-rw-r--r--util-linux/fdisk.c6
-rw-r--r--util-linux/fdisk_sgi.c2
-rw-r--r--util-linux/mkfs_vfat.c2
-rw-r--r--util-linux/nsenter.c4
-rw-r--r--util-linux/unshare.c2
-rw-r--r--util-linux/volume_id/Config.src2
7 files changed, 7 insertions, 13 deletions
diff --git a/util-linux/Config.src b/util-linux/Config.src
index 68fcc266f..0fad3e5c0 100644
--- a/util-linux/Config.src
+++ b/util-linux/Config.src
@@ -1,6 +1,6 @@
1# 1#
2# For a description of the syntax of this configuration file, 2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt. 3# see docs/Kconfig-language.txt.
4# 4#
5 5
6menu "Linux System Utilities" 6menu "Linux System Utilities"
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 7275535e6..cdcba0a03 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -2004,12 +2004,6 @@ check_consistency(const struct partition *p, int partition)
2004 printf(" phys=(%u,%u,%u) ", pec, peh, pes); 2004 printf(" phys=(%u,%u,%u) ", pec, peh, pes);
2005 printf("logical=(%u,%u,%u)\n", lec, leh, les); 2005 printf("logical=(%u,%u,%u)\n", lec, leh, les);
2006 } 2006 }
2007
2008/* Ending on cylinder boundary? */
2009 if (peh != (g_heads - 1) || pes != g_sectors) {
2010 printf("Partition %u does not end on cylinder boundary\n",
2011 partition + 1);
2012 }
2013} 2007}
2014 2008
2015static void 2009static void
diff --git a/util-linux/fdisk_sgi.c b/util-linux/fdisk_sgi.c
index 30def09c6..1cf0af5cc 100644
--- a/util-linux/fdisk_sgi.c
+++ b/util-linux/fdisk_sgi.c
@@ -425,7 +425,7 @@ create_sgiinfo(void)
425 /* I keep SGI's habit to write the sgilabel to the second block */ 425 /* I keep SGI's habit to write the sgilabel to the second block */
426 sgilabel->directory[0].vol_file_start = SGI_SSWAP32(2); 426 sgilabel->directory[0].vol_file_start = SGI_SSWAP32(2);
427 sgilabel->directory[0].vol_file_size = SGI_SSWAP32(sizeof(sgiinfo)); 427 sgilabel->directory[0].vol_file_size = SGI_SSWAP32(sizeof(sgiinfo));
428 strncpy((char*)sgilabel->directory[0].vol_file_name, "sgilabel", 8); 428 memcpy((char*)sgilabel->directory[0].vol_file_name, "sgilabel", 8);
429} 429}
430 430
431static sgiinfo *fill_sgiinfo(void); 431static sgiinfo *fill_sgiinfo(void);
diff --git a/util-linux/mkfs_vfat.c b/util-linux/mkfs_vfat.c
index 26a919536..92f0e3b1a 100644
--- a/util-linux/mkfs_vfat.c
+++ b/util-linux/mkfs_vfat.c
@@ -522,7 +522,7 @@ int mkfs_vfat_main(int argc UNUSED_PARAM, char **argv)
522 //STORE_LE(boot_blk->reserved2[3], 0,0,0); 522 //STORE_LE(boot_blk->reserved2[3], 0,0,0);
523 STORE_LE(boot_blk->vi.ext_boot_sign, 0x29); 523 STORE_LE(boot_blk->vi.ext_boot_sign, 0x29);
524 STORE_LE(boot_blk->vi.volume_id32, volume_id); 524 STORE_LE(boot_blk->vi.volume_id32, volume_id);
525 strncpy(boot_blk->vi.fs_type, "FAT32 ", sizeof(boot_blk->vi.fs_type)); 525 memcpy(boot_blk->vi.fs_type, "FAT32 ", sizeof(boot_blk->vi.fs_type));
526 strncpy(boot_blk->vi.volume_label, volume_label, sizeof(boot_blk->vi.volume_label)); 526 strncpy(boot_blk->vi.volume_label, volume_label, sizeof(boot_blk->vi.volume_label));
527 memcpy(boot_blk->boot_code, boot_code, sizeof(boot_code)); 527 memcpy(boot_blk->boot_code, boot_code, sizeof(boot_code));
528 STORE_LE(boot_blk->boot_sign, BOOT_SIGN); 528 STORE_LE(boot_blk->boot_sign, BOOT_SIGN);
diff --git a/util-linux/nsenter.c b/util-linux/nsenter.c
index c6933c8d5..ae8103a52 100644
--- a/util-linux/nsenter.c
+++ b/util-linux/nsenter.c
@@ -105,14 +105,14 @@ static const struct namespace_descr ns_list[] = {
105/* 105/*
106 * Upstream nsenter doesn't support the short option for --preserve-credentials 106 * Upstream nsenter doesn't support the short option for --preserve-credentials
107 */ 107 */
108static const char opt_str[] ALIGN1 = "U::i::u::n::p::m::""t+S+G+r::w::F"; 108static const char opt_str[] ALIGN1 = "U::i::u::n::p::m::""t:+S:+G:+r::w::F";
109 109
110#if ENABLE_LONG_OPTS 110#if ENABLE_LONG_OPTS
111static const char nsenter_longopts[] ALIGN1 = 111static const char nsenter_longopts[] ALIGN1 =
112 "user\0" Optional_argument "U" 112 "user\0" Optional_argument "U"
113 "ipc\0" Optional_argument "i" 113 "ipc\0" Optional_argument "i"
114 "uts\0" Optional_argument "u" 114 "uts\0" Optional_argument "u"
115 "network\0" Optional_argument "n" 115 "net\0" Optional_argument "n"
116 "pid\0" Optional_argument "p" 116 "pid\0" Optional_argument "p"
117 "mount\0" Optional_argument "m" 117 "mount\0" Optional_argument "m"
118 "target\0" Required_argument "t" 118 "target\0" Required_argument "t"
diff --git a/util-linux/unshare.c b/util-linux/unshare.c
index 7c295da1f..fffee28a0 100644
--- a/util-linux/unshare.c
+++ b/util-linux/unshare.c
@@ -73,7 +73,7 @@
73#include "libbb.h" 73#include "libbb.h"
74 74
75static void mount_or_die(const char *source, const char *target, 75static void mount_or_die(const char *source, const char *target,
76 const char *fstype, unsigned long mountflags) 76 const char *fstype, unsigned long mountflags)
77{ 77{
78 if (mount(source, target, fstype, mountflags, NULL)) { 78 if (mount(source, target, fstype, mountflags, NULL)) {
79 bb_perror_msg_and_die("can't mount %s on %s (flags:0x%lx)", 79 bb_perror_msg_and_die("can't mount %s on %s (flags:0x%lx)",
diff --git a/util-linux/volume_id/Config.src b/util-linux/volume_id/Config.src
index ac208c9cc..fe3b14a71 100644
--- a/util-linux/volume_id/Config.src
+++ b/util-linux/volume_id/Config.src
@@ -1,6 +1,6 @@
1# 1#
2# For a description of the syntax of this configuration file, 2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt. 3# see docs/Kconfig-language.txt.
4# 4#
5 5
6config VOLUMEID 6config VOLUMEID