]> err.no Git - util-linux/log
util-linux
15 years agofdisk: cannot create partition with starting beyond 1 TB
Karel Zak [Thu, 13 Nov 2008 13:56:17 +0000 (14:56 +0100)]
fdisk: cannot create partition with starting beyond 1 TB

fdisk(8) uses "unsigned long long" for all internal calculations --
let use it for start of partition too.

Address-Red-Hat-Bugzilla: #471369
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agofdisk: add some missing includes
Matthias Koenig [Thu, 6 Nov 2008 14:24:24 +0000 (15:24 +0100)]
fdisk: add some missing includes

Currently these missing includes prevent that HDIO_GETGEO
is defined, so is_probably_full_disk always uses the
"silly heuristic" method.

[kzak@redhat.com: add also unistd.h]

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agochrt: support CFS SCHED_IDLE priority and document it
Martin Steigerwald [Tue, 23 Sep 2008 12:23:03 +0000 (14:23 +0200)]
chrt: support CFS SCHED_IDLE priority and document it

Signed-off-by: Martin Steigerwald <ms@teamix.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agocfdisk: accept yes/no as fallback
Matthias Koenig [Thu, 6 Nov 2008 14:49:30 +0000 (15:49 +0100)]
cfdisk: accept yes/no as fallback

Accept "yes" or "no" as fallback in case the question
has not been translated.

[kzak@redhat.com: note that rpmatch(3) looks at only the first
                  character of response, but we need have to
                  check the full yes/no string.]

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
15 years agoinclude: use __BYTE_ORDER rather than AC specific WORDS_BIGENDIAN
Karel Zak [Mon, 8 Dec 2008 10:16:37 +0000 (11:16 +0100)]
include: use __BYTE_ORDER rather than AC specific WORDS_BIGENDIAN

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolib: add __BYTE_ORDER to md5.c
Karel Zak [Mon, 8 Dec 2008 10:12:30 +0000 (11:12 +0100)]
lib: add __BYTE_ORDER to md5.c

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: add -luuid to BLKID_LIBS
Karel Zak [Wed, 17 Sep 2008 11:49:45 +0000 (13:49 +0200)]
build-sys: add -luuid to BLKID_LIBS

The libblkid is always linked with libuuild, so this indirect
dependence in BLKID_LIBS is not a problem. This change helps to people
who compile util-linux-ng with non-standard prefix, ..etc.

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomount: mtab created multiple times with -a option
Karel Zak [Tue, 30 Sep 2008 22:27:37 +0000 (00:27 +0200)]
mount: mtab created multiple times with -a option

When /etc/mtab does not exist and mount is called with -a, for every
mount point that is mounted a root-fs record is added to mtab. This is
because get_mtab_info() sets the flag mtab_does_not_exist to 1 when it
doesn't find /etc/mtab. However, if it actually finds /etc/mtab, the
variable is not reset to 0. So on every subsequent call to
get_mtab_info() (as it is the case when mounting several mount points
with the -a option), mount will think that /etc/mtab does not exist,
even if it was created in the meantime by mount itself.

Reported-By: Jonas Kramer <jkramer@nex.scrapping.cc>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agobuild-sys: release++ (v2.14.1)
Karel Zak [Wed, 10 Sep 2008 10:17:22 +0000 (12:17 +0200)]
build-sys: release++ (v2.14.1)

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: update v2.14.1 ReleaseNotes
Karel Zak [Wed, 10 Sep 2008 10:11:21 +0000 (12:11 +0200)]
docs: update v2.14.1 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: merge changes
Karel Zak [Wed, 10 Sep 2008 09:21:54 +0000 (11:21 +0200)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: update zh_CN.po (from translationproject.org)
Ray Wang [Wed, 10 Sep 2008 09:02:59 +0000 (11:02 +0200)]
po: update zh_CN.po (from translationproject.org)

16 years agopo: update vi.po (from translationproject.org)
Clytie Siddall [Wed, 10 Sep 2008 09:02:59 +0000 (11:02 +0200)]
po: update vi.po (from translationproject.org)

16 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Wed, 10 Sep 2008 09:02:59 +0000 (11:02 +0200)]
po: update nl.po (from translationproject.org)

16 years agopo: update id.po (from translationproject.org)
Arif E. Nugroho [Wed, 10 Sep 2008 09:02:59 +0000 (11:02 +0200)]
po: update id.po (from translationproject.org)

16 years agopo: update fi.po (from translationproject.org)
Lauri Nurmi [Wed, 10 Sep 2008 09:02:59 +0000 (11:02 +0200)]
po: update fi.po (from translationproject.org)

16 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Wed, 10 Sep 2008 09:02:59 +0000 (11:02 +0200)]
po: update cs.po (from translationproject.org)

16 years agobuild-sys: release++ (v2.14.1-rc2)
Karel Zak [Fri, 22 Aug 2008 10:50:05 +0000 (12:50 +0200)]
build-sys: release++ (v2.14.1-rc2)

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: update v2.14.1 ReleaseNotes
Karel Zak [Fri, 22 Aug 2008 10:43:46 +0000 (12:43 +0200)]
docs: update v2.14.1 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: update AUTHORS file
Karel Zak [Fri, 22 Aug 2008 10:40:23 +0000 (12:40 +0200)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: merge changes
Karel Zak [Fri, 22 Aug 2008 10:38:17 +0000 (12:38 +0200)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: add zh_CN.po (from translationproject.org)
Ray Wang [Fri, 22 Aug 2008 10:22:42 +0000 (12:22 +0200)]
po: add zh_CN.po (from translationproject.org)

16 years agofdisk: don't check for GPT when asked for disk size only
Karel Zak [Tue, 19 Aug 2008 09:21:09 +0000 (11:21 +0200)]
fdisk: don't check for GPT when asked for disk size only

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agolosetup: remove unnecessary minor number check
Karel Zak [Thu, 21 Aug 2008 09:17:55 +0000 (11:17 +0200)]
losetup: remove unnecessary minor number check

The latest kernel supports partitioned loop devices (kernel commit
476a4813cfddf7cf159956cc0e2d3c830c1507e3). Unfortunately, this change
makes minor numbers useless, because mirror number does not match with
loop device name (loop<N>).

Fortunately, losetup code does not depend on minor numbers.

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoipcs: ungettextize the spacing of the table headers
Benno Schulenberg [Thu, 14 Aug 2008 22:27:03 +0000 (00:27 +0200)]
ipcs: ungettextize the spacing of the table headers

It makes no sense to allow translators to adjust the spacing when
they cannot adjust the spacing of the actual data too.  Adjusting
such spacing is not really a translator's task.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
16 years agobuild-sys: release++ (v2.14.1-rc1)
Karel Zak [Wed, 13 Aug 2008 22:42:02 +0000 (00:42 +0200)]
build-sys: release++ (v2.14.1-rc1)

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: update v2.14.1 ReleaseNotes
Karel Zak [Wed, 13 Aug 2008 22:19:04 +0000 (00:19 +0200)]
docs: update v2.14.1 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: update AUTHORS file
Karel Zak [Wed, 13 Aug 2008 22:10:58 +0000 (00:10 +0200)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: merge changes
Karel Zak [Wed, 13 Aug 2008 20:19:57 +0000 (22:19 +0200)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Wed, 13 Aug 2008 20:00:18 +0000 (22:00 +0200)]
po: update cs.po (from translationproject.org)

16 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Wed, 13 Aug 2008 20:00:06 +0000 (22:00 +0200)]
po: update nl.po (from translationproject.org)

16 years agoscriptreplay: new implementation is out-of-sync
Karel Zak [Wed, 30 Jul 2008 10:39:04 +0000 (12:39 +0200)]
scriptreplay: new implementation is out-of-sync

Reproduction steps:

1. Run "script -t 2>timing".
2. When the prompt comes up, hit return.
3. New prompt. Wait several seconds, then type "true" and hit return.
4. Repeat (3) as desired, then exit scripted shell.
5. Run "scriptreplay timing".

You'll find on the replay that, rather than waiting several seconds
between the prompt and true, the wait will actually occur after the
first "t" of true.

Reported-by: Micah Cowan <micah@cowan.name>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomount: add docs about utf8=0 for vfat
Karel Zak [Tue, 12 Aug 2008 12:58:50 +0000 (14:58 +0200)]
mount: add docs about utf8=0 for vfat

Addresses-Red-Hat-Bugzilla: #454354
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomount: add fallback for versionsort()
Karel Zak [Thu, 24 Jul 2008 21:22:09 +0000 (23:22 +0200)]
mount: add fallback for versionsort()

I was trying to build util-linux-ng on uclibc and it failed

| lomount.c: In function 'looplist_next':
| lomount.c:223: error: 'versionsort' undeclared (first use in this function)
| lomount.c:223: error: (Each undeclared identifier is reported only once
| lomount.c:223: error: for each function it appears in.)
| make[2]: *** [mount-lomount.o] Error 1
|

which is understood because versionsort is GNU extension and uclibc does
not implement it.

Reported-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agobuild-sys: tgets is not in ncurses but in tinfo
Arkadiusz Miskiewicz [Fri, 8 Aug 2008 06:21:23 +0000 (08:21 +0200)]
build-sys: tgets is not in ncurses but in tinfo

ncurses library can be build with terminal related functions
landing in separate libtinfo library. Check for ncurses function
when testing ncurses library existence.

Signed-off-by: Arkadiusz Miƛkiewicz <arekm@maven.pl>
16 years agobuild-sys: fix dmesg.1 installation
Karel Zak [Mon, 11 Aug 2008 10:37:07 +0000 (12:37 +0200)]
build-sys: fix dmesg.1 installation

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agobuild-sys: cleanup sys-utils/Makefile.am
Karel Zak [Mon, 11 Aug 2008 10:35:30 +0000 (12:35 +0200)]
build-sys: cleanup sys-utils/Makefile.am

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agohwclock: unshadow a diagnostic printf
Kalev Soikonen [Sun, 27 Jul 2008 23:13:53 +0000 (02:13 +0300)]
hwclock: unshadow a diagnostic printf

- Bogus if test means one message is never produced.

- Avoid needless passing of a global variable (debug).

The --test option flag ought to be a global as well (and perhaps -n/--dry-run).

Signed-off-by: Kalev Soikonen <ksop@hot.ee>
16 years agomount: add info about tz=UTC option for FAT to mount.8
Karel Zak [Mon, 28 Jul 2008 09:18:27 +0000 (11:18 +0200)]
mount: add info about tz=UTC option for FAT to mount.8

CC: Joe Peterson <joe@skyrush.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agosfdisk: print version should end with a newline
Denis ChengRq [Thu, 7 Aug 2008 09:07:49 +0000 (17:07 +0800)]
sfdisk: print version should end with a newline

Signed-off-by: Denis ChengRq <crquan@gmail.com>
16 years agortcwake: cleanup return codes
Karel Zak [Wed, 6 Aug 2008 10:36:10 +0000 (12:36 +0200)]
rtcwake: cleanup return codes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agortcwake: prefer RTC_WKALM_SET over RTC_ALM_SET
Gabriel Burt [Tue, 5 Aug 2008 05:18:52 +0000 (00:18 -0500)]
rtcwake: prefer RTC_WKALM_SET over RTC_ALM_SET

rtcwake: Prefer RTC_WKALM_SET over RTC_ALM_SET, fixing bug with not
waking up with new RTCs.  Also, return error if unable to set the alarm.

Signed-off-by: Gabriel Burt <gburt@novell.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agowrite: doesn't check for tty group
Karel Zak [Mon, 7 Jul 2008 13:22:22 +0000 (15:22 +0200)]
write: doesn't check for tty group

write(1) selects a wrong tty, because there is not a proper
check of tty group ownership:

$ write kzak
write: kzak is logged in more than once; writing to tty7
write: /dev/tty7: Permission denied

$ ls -la /dev/tty7
crw--w---- 1 root root 4, 7 2008-07-04 00:32 /dev/tty7
                  ^^^^

$ ls -la /usr/bin/write
-rwxr-sr-x 1 root tty 11864 2008-04-02 16:24 /usr/bin/write
      ^           ^^^

We have to check for tty group owner, because we don't have
permissions to write to arbitrary tty.

Fixed version:

$ write kzak
write: kzak is logged in more than once; writing to pts/6
                                                    ^^^^
Message from test@nb on pts/7 at 15:22 ...

^C

$ ls -la /dev/pts/6
crw--w---- 1 kzak tty 136, 6 2008-07-07 15:35 /dev/pts/6
                  ^^^

Addresses-Red-Hat-Bugzilla: #454252
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoumount: improve "-d" option for autoclear loops
Karel Zak [Wed, 2 Jul 2008 12:26:51 +0000 (14:26 +0200)]
umount: improve "-d" option for autoclear loops

The new loop auto-destruct feature detaches automatically loop devices
when no longer used. This means they are detached with the umount()
call. But when we call umount with -d, del_loop() is called and fails
because the ioctl() returns ENXIO. We have to check for autoclear
loop devices rather than blindly call del_loop().

Reported-by: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoselinux: is_selinux_enabled() returns 0, 1 and -1
Karel Zak [Tue, 1 Jul 2008 12:24:58 +0000 (14:24 +0200)]
selinux: is_selinux_enabled() returns 0, 1 and -1

Unfortunately, the current libselinux implementation of
is_selinux_enabled() returns -1 on error. This behavior is
undocumented.

The proper solution is to use "if (is_selinux_enabled() > 0)".

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomount: add norealtime to mount.8
Karel Zak [Mon, 16 Jun 2008 11:53:30 +0000 (13:53 +0200)]
mount: add norealtime to mount.8

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agohwclock: omit warning about drift if --noadjfile given
Matthias Koenig [Mon, 2 Jun 2008 14:51:57 +0000 (16:51 +0200)]
hwclock: omit warning about drift if --noadjfile given

Currently, if hwclock is given the --noadjfile option it will
nevertheless display information about the drift rate when invoked with
the --debug option.

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
16 years agobuild-sys: release++ (v2.14)
Karel Zak [Mon, 9 Jun 2008 11:58:54 +0000 (13:58 +0200)]
build-sys: release++ (v2.14)

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: update v2.14 ReleaseNotes
Karel Zak [Mon, 9 Jun 2008 10:53:27 +0000 (12:53 +0200)]
docs: update v2.14 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: update AUTHORS file
Karel Zak [Mon, 9 Jun 2008 10:20:40 +0000 (12:20 +0200)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: merge changes
Karel Zak [Mon, 9 Jun 2008 10:18:26 +0000 (12:18 +0200)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: update hu.po (from translationproject.org)
Gabor Kelemen [Mon, 9 Jun 2008 10:02:00 +0000 (12:02 +0200)]
po: update hu.po (from translationproject.org)

16 years agoddate: 11th, 12th and 13th of month
Volker Schatz [Tue, 3 Jun 2008 21:52:04 +0000 (23:52 +0200)]
ddate: 11th, 12th and 13th of month

the Discordian date utility ddate gives the 11th, 12th and 13th of the month as
the "11st", "12nd" and "13rd".  Unless this is a religious thing, please apply
the patch below.

Signed-off-by: Volker Schatz <oss@volkerschatz.com>
16 years agortcwake: fix the default mode to "standby"
Paulius Zaleckas [Mon, 9 Jun 2008 09:35:59 +0000 (11:35 +0200)]
rtcwake: fix the default mode to "standby"

Writing "suspend" to /sys/power/state does nothing.
Even "man rtcwake" says that default should be "standby" :)

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomount: fix a small typo in mount.8
Christophe Blaess [Mon, 9 Jun 2008 09:32:19 +0000 (11:32 +0200)]
mount: fix a small typo in mount.8

While working on french translation of the Linux Man Pages, I've found a
small typo in mount.8.

Only one wrong letter : the option "osyncis_o_sync" for XFS filesystem
is erroneously replaced by "osyncis_d_sync" (the previous option).

Signed-off-by: Christophe Blaess <Christophe@Blaess.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agobuild-sys: release++
Karel Zak [Mon, 19 May 2008 09:42:43 +0000 (11:42 +0200)]
build-sys: release++

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: update 2.14 ReleaseNotes
Karel Zak [Mon, 19 May 2008 09:28:10 +0000 (11:28 +0200)]
docs: update 2.14 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: merge changes
Karel Zak [Mon, 19 May 2008 09:02:47 +0000 (11:02 +0200)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: update vi.po (from translationproject.org)
Clytie Siddall [Mon, 19 May 2008 08:53:11 +0000 (10:53 +0200)]
po: update vi.po (from translationproject.org)

16 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Mon, 19 May 2008 08:52:58 +0000 (10:52 +0200)]
po: update nl.po (from translationproject.org)

16 years agopo: update it.po (from translationproject.org)
Marco Colombo [Mon, 19 May 2008 08:52:40 +0000 (10:52 +0200)]
po: update it.po (from translationproject.org)

16 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Mon, 19 May 2008 08:50:13 +0000 (10:50 +0200)]
po: update cs.po (from translationproject.org)

16 years agodocs: we already rewrote the scriptreplay script; remove that TODO entry
James Youngman [Sat, 17 May 2008 00:53:48 +0000 (01:53 +0100)]
docs: we already rewrote the scriptreplay script; remove that TODO entry

Signed-off-by: James Youngman <jay@gnu.org>
16 years agomount: remount doesn't care about loop=
Karel Zak [Wed, 14 May 2008 14:38:47 +0000 (16:38 +0200)]
mount: remount doesn't care about loop=

The command

   # mount -oremount <spec> <dir>

doesn't read fstab or mtab. This is expected behaviour. Unfortunately,
we have to care about the internal loop= option which is generated and
maintained by mount(8)/umount(8). The loop= option has to be persistent.

How to reproduce this bug:

 # mount -o loop       /home/images/vfat.img /mnt/img; grep vfat /etc/mtab; \
   mount -o remount,ro /home/images/vfat.img /mnt/img; grep vfat /etc/mtab;

 /home/images/vfat.img /mnt/img vfat rw,loop=/dev/loop0 0 0
 /home/images/vfat.img /mnt/img vfat ro 0 0

Reported-By: David Chinner <dgc@sgi.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agobuild-sys: add support ionice for Super-H architecture
Karel Zak [Mon, 19 May 2008 08:21:50 +0000 (10:21 +0200)]
build-sys: add support ionice for Super-H architecture

Addresses-Red-Hat-Bugzilla: #446560
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agofdisk: doesn't recognize the VMware ESX partitions
Karel Zak [Mon, 19 May 2008 07:30:54 +0000 (09:30 +0200)]
fdisk: doesn't recognize the VMware ESX partitions

The fdisk programs do not recognize the partition types used by VMware
ESX.  They show up as "unknown".

Addresses-Red-Hat-Bugzilla: #447023
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agosetarch: add fallback for linux/personality
Karel Zak [Tue, 13 May 2008 12:00:39 +0000 (14:00 +0200)]
setarch: add fallback for linux/personality

setarch.c:248: error: 'ADDR_NO_RANDOMIZE' undeclared (first use in this function)
setarch.c:248: error: (Each undeclared identifier is reported only once
setarch.c:248: error: for each function it appears in.)
setarch.c:251: error: 'FDPIC_FUNCPTRS' undeclared (first use in this function)
setarch.c:257: error: 'ADDR_COMPAT_LAYOUT' undeclared (first use in this function)
setarch.c:260: error: 'READ_IMPLIES_EXEC' undeclared (first use in this function)

Linux gzp1 2.4.36.1-gzp1 #1 SMP Tue Feb 19 10:23:48 CET 2008 i686 GNU/Linux

Reported-By: Gabor Z. Papp <gzp@papp.hu>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agobuild-sys: release++
Karel Zak [Mon, 28 Apr 2008 12:13:43 +0000 (14:13 +0200)]
build-sys: release++

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: update v2.14 ReleaseNotes
Karel Zak [Mon, 28 Apr 2008 12:03:57 +0000 (14:03 +0200)]
docs: update v2.14 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: merge changes
Karel Zak [Mon, 28 Apr 2008 12:01:29 +0000 (14:01 +0200)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoscriptreplay: gettextize a forgotten messages
Karel Zak [Mon, 28 Apr 2008 11:58:24 +0000 (13:58 +0200)]
scriptreplay: gettextize a forgotten messages

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: update v2.14 ReleaseNotes
Karel Zak [Mon, 28 Apr 2008 11:51:22 +0000 (13:51 +0200)]
docs: update v2.14 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoionice: update man page to reflect IDLE class change in 2.6.25
Karel Zak [Mon, 28 Apr 2008 10:23:40 +0000 (12:23 +0200)]
ionice: update man page to reflect IDLE class change in  2.6.25

The idle class is safe for non-root users since 2.6.25.
http://lwn.net/Articles/266256/

Addresses-Red-Hat-Bugzilla: #443823
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agologin: audit log injection attack via login
Steve Grubb [Sat, 19 Apr 2008 15:49:02 +0000 (11:49 -0400)]
login: audit log injection attack via login

A while back I found a couple audit log injection attacks which became
CVE-2007-3102. I forgot to look at login to see if its vulnerable and Mirek
found that it is. To verify the problem, type:

root addr=xyz.com

for the account name while logging in. It will look like root logged in with
an address of xyz.com.

Signed-off-by: Steve Grubb <sgrubb@redhat.com>
16 years agodocs: remove date from ReleasNotes
Karel Zak [Wed, 16 Apr 2008 22:16:01 +0000 (00:16 +0200)]
docs: remove date from ReleasNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: update v2.14-ReleaseNotes
Karel Zak [Wed, 16 Apr 2008 21:41:19 +0000 (23:41 +0200)]
docs: update v2.14-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: update AUTHORS file
Karel Zak [Wed, 16 Apr 2008 21:22:23 +0000 (23:22 +0200)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agocal: use HAVE_LIB{NCURSES,NCURSESW} instead HAVE_NCURSES
Karel Zak [Wed, 16 Apr 2008 21:12:40 +0000 (23:12 +0200)]
cal: use HAVE_LIB{NCURSES,NCURSESW} instead HAVE_NCURSES

The HAVE_NCURSES is obsolete macro. The autotool generates HAVE_LIBxxx macros.

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomore: use HAVE_WIDECHAR instead ENABLE_WIDECHAR
Karel Zak [Wed, 16 Apr 2008 20:47:37 +0000 (22:47 +0200)]
more: use HAVE_WIDECHAR instead ENABLE_WIDECHAR

This problem has been detected by tools/codecheck-config.

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: merge changes
Karel Zak [Wed, 16 Apr 2008 20:37:48 +0000 (22:37 +0200)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Wed, 16 Apr 2008 20:21:38 +0000 (22:21 +0200)]
po: update nl.po (from translationproject.org)

16 years agobuild-sys: remove unnecessary check-local target from login-utils/
Karel Zak [Wed, 16 Apr 2008 20:04:46 +0000 (22:04 +0200)]
build-sys: remove unnecessary check-local target from login-utils/

We have all tests in the tests/ directory.

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomkswap: set errno=0 in write_all()
Karel Zak [Wed, 16 Apr 2008 12:13:42 +0000 (14:13 +0200)]
mkswap: set errno=0 in write_all()

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agosetarch: provide backwards compatibility
Dmitry V. Levin [Tue, 15 Apr 2008 23:26:56 +0000 (03:26 +0400)]
setarch: provide backwards compatibility

The getopt_long(3) use introduced by commit
8df90dec2bfd8c876ddd4cea010f40550d4e24aa
broke backwards compatibility.

Old behavior:
$ i386 uname -m
i686

New behavior:
$ i386 uname -m
i386: invalid option -- m
Linux

Traditional method to fix it is to disable program arguments reordering
by prefixing getopt_long's optstring with '+' character.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agolosetup: fix typo in losetup.8
Karel Zak [Tue, 15 Apr 2008 23:32:10 +0000 (01:32 +0200)]
losetup: fix typo in losetup.8

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: add note about losetup --sizelimit to ReleaseNotes
Karel Zak [Tue, 15 Apr 2008 23:29:43 +0000 (01:29 +0200)]
docs: add note about losetup --sizelimit to ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agochfn, chsh, login: collapsing three similar messages into a single one
Benno Schulenberg [Tue, 15 Apr 2008 11:56:28 +0000 (13:56 +0200)]
chfn, chsh, login: collapsing three similar messages into a single one

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
16 years agolosetup: split help message into two smaller parts
Benno Schulenberg [Tue, 15 Apr 2008 10:20:25 +0000 (12:20 +0200)]
losetup: split help message into two smaller parts

As it has already changed since the previous release, take the opportunity
to cut it into two more manageable chunks for translators.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoswapon: fix swsuspend detection
Karel Zak [Tue, 15 Apr 2008 21:18:36 +0000 (23:18 +0200)]
swapon: fix swsuspend detection

Welcome to hell where S1SUSPEND/S2SUSPEND is

  "swsuspend" in libblkid

and

  "suspend" in libvolume_id

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomount: fix typo in mount.8
Karel Zak [Tue, 15 Apr 2008 19:27:23 +0000 (21:27 +0200)]
mount: fix typo in mount.8

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agolosetup: mark the option -s as deprecated
Karel Zak [Tue, 15 Apr 2008 11:44:21 +0000 (13:44 +0200)]
losetup: mark the option -s as deprecated

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomount: add support for sizelimit= mount option (for loop mounts)
Shachar Shemesh [Tue, 15 Apr 2008 11:11:40 +0000 (13:11 +0200)]
mount: add support for sizelimit= mount option (for loop mounts)

[kzak@redhat.com: split the original patch to small patches]
Signed-off-by: Shachar Shemesh <shachar@lingnu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agolosetup: add --sizelimit option
Shachar Shemesh [Tue, 15 Apr 2008 10:57:35 +0000 (12:57 +0200)]
losetup: add --sizelimit option

[kzak@redhat.com: split the original patch to small patches]
Signed-off-by: Shachar Shemesh <shachar@debian.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomkswap: when writing the signature page, handle EINTR returns
Karel Zak [Mon, 14 Apr 2008 22:35:05 +0000 (00:35 +0200)]
mkswap: when writing the signature page, handle EINTR returns

If the signature page write bumps into EINTR, it should finish the
write, instead of dying.

Addresses-Ubuntu-Bug: 206113
Signed-off-by: LaMont Jones <lamont@canonical.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agobuild-sys: update .gitignore files
Karel Zak [Mon, 14 Apr 2008 12:24:03 +0000 (14:24 +0200)]
build-sys: update .gitignore files

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agobuild-sys: ignore a bunch of generated files, mostly binaries
James Youngman [Sun, 13 Apr 2008 18:58:18 +0000 (19:58 +0100)]
build-sys: ignore a bunch of generated files, mostly binaries

Signed-off-by: James Youngman <jay@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agologin: rewrite is_local() to remove limits on line length
James Youngman [Sat, 12 Apr 2008 11:53:07 +0000 (12:53 +0100)]
login: rewrite is_local() to remove limits on line length

Signed-off-by: James Youngman <jay@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: cleanup README.devel, add note about coding style and Signed-off-by
Karel Zak [Mon, 14 Apr 2008 10:51:41 +0000 (12:51 +0200)]
docs: cleanup README.devel, add note about coding style and Signed-off-by

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agofdisk: message tweak
Karel Zak [Mon, 14 Apr 2008 10:16:14 +0000 (12:16 +0200)]
fdisk: message tweak

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoscriptreplay: rewrite in C
Karel Zak [Wed, 2 Apr 2008 09:34:12 +0000 (11:34 +0200)]
scriptreplay: rewrite in C

The dependence on Perl sucks...

Co-Author: James Youngman <jay@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: James Youngman <jay@gnu.org>