]> err.no Git - util-linux/log
util-linux
16 years agoMerge commit 'origin/master'
LaMont Jones [Tue, 12 Aug 2008 05:57:02 +0000 (23:57 -0600)]
Merge commit 'origin/master'

Conflicts:

mount/mount.c

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 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 agohwclock: cleanup help output and man page
Karel Zak [Wed, 6 Aug 2008 11:19:40 +0000 (13:19 +0200)]
hwclock: cleanup help output and man page

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 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 agoscript: don't flush input when starting script
Andrew McGill [Tue, 29 Jul 2008 21:56:05 +0000 (23:56 +0200)]
script: don't flush input when starting script

script currently flushed the input buffer when starting up.  This undocumented
behaviour prevents typeahead when starting up (e.g. as part of .profile).
Rather retain queued input. Don't discard queued output either.

Signed-off-by: Andrew McGill <andrew@lunch.za.net>
16 years agoFix dmesg.1 installation
Alexey Gladkov [Thu, 31 Jul 2008 11:45:57 +0000 (15:45 +0400)]
Fix dmesg.1 installation

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
16 years agolosetup: looplist_* refactoring, remove scandir()
Karel Zak [Fri, 1 Aug 2008 10:18:03 +0000 (12:18 +0200)]
losetup: looplist_* refactoring, remove scandir()

This patch replaces scandir-based implementation with readdir(). The
readdir(3) is less expensive and more portable (to non-glibc environment).

The patch also replaces sysfs-based solution with simpler /proc/partitions
parsing. The /proc/partitions includes all used loop devices on all systems
(include 2.4). This solution seems faster than scandir(/sys/block/) too.

Summary, the losetup (with this patch) uses three methods to found a
loop device:

  a) parse /proc/partitions to found already used loop devices (for
     loserup -a)

  b) stat(2) for all loop[0-7] devices (default number of loop devices).
     This is classic method from util-linux <= 2.13. This method is good
     enough for standard Linux machines with default number of loop
     devices.

  c) scan all /dev or /dev/loop/ for loop devices. This is useful for
     crazy people who need more than 8 loop devices.

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agouse getpagesize()
maximilian attems [Wed, 30 Jul 2008 09:46:32 +0000 (11:46 +0200)]
use getpagesize()

getpagesize() is said to be more portable than sysconf(_SC_PAGESIZE)
to anything Linux.

this patch helps klibc porting effort as the sysconf
multiplex API is not supported there.

also remove comment of the switch to sysconf in mkswap.c.

Signed-off-by: maximilian attems <max@stro.at>
16 years agomount: retry on ENOMEDIUM
Matthias Koenig [Mon, 9 Jun 2008 14:38:25 +0000 (16:38 +0200)]
mount: retry on ENOMEDIUM

Due to a change in kernel behaviour when opening CDROM devices,
we need to retry the open/mount call when ENOMEDIUM is returned.

Explanation from Tejun Heo:
Okay, the difference is from the addition of cdrom_get_media_event()
call to both sr_drive_status() and ide_cdrom_drive_status().
Previously, the cdrom driver can't differentiate between tray closed
w/ no media and tray open and always returned tray open, which
triggers close and retry in the open logic which probably have delayed
things enough to get the media recognized.

Now the cdrom driver can discern between tray closed w/o media and
device not ready for other reasons and returns -ENOMEDIUM on the
former.  This is all good and dandy but the problem seems that some
drives report no media right after the tray is closed but it hasn't
properly detected the media yet.

It seems the only way to work around the problem is via sensible
retries (e.g.  try three times 5 secs apart) and I don't think we can
add that type of retry logic into cdrom open path.  Please note that
the previous logic wasn't water proof.  Some drives can take longer to
recognize the media is there and could have failed the in-kernel retry
too.  Also, reading the media can take quite some time and during that
period the drive reports media present but device not ready.  The
driver will retry the command (e.g. READ TOC for open) five times but
all of them can fail w/ EMEDIUMTYPE.

[kzak@redhat.com: - add CRDOM_NOMEDIUM_RETRIES to blkdev.h
                  - add verbose message to mount.c]

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomount: add shortoptions for bind, move and rbind
maximilian attems [Fri, 25 Jul 2008 07:29:25 +0000 (09:29 +0200)]
mount: add shortoptions for bind, move and rbind

Reserving uppercase letters for mount operations:

    --move  | -M
    --bind  | -B
    --rbind | -R

Add lowercase for the most needed mount operation that happen
in initramfs: mount -M /sys /root/sys

Note, we still have shared-subtree operations (--make-{slave,private,...})
without short options.

[kzak@redhat.com: minor change in mount.8]

Signed-off-by: maximilian attems <max@stro.at>
Signed-off-by: Karel Zak <kzak@redhat.com>
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 agoremove CVS keywords
maximilian attems [Thu, 24 Jul 2008 22:14:44 +0000 (00:14 +0200)]
remove CVS keywords

this patch removes old CVS keywords from comments.

mount(8) works for newer Linux then 0.99 ;)

Signed-off-by: maximilian attems <max@stro.at>
16 years agofdisk: exit(3) needs stdlib.h include
maximilian attems [Thu, 24 Jul 2008 13:22:11 +0000 (15:22 +0200)]
fdisk: exit(3) needs stdlib.h include

partitiontype.c:57: warning: incompatible implicit declaration of built-in function ‘exit’

Signed-off-by: maximilian attems <max@stro.at>
16 years agodisk-utils: include fcntl.h directly (mkfs.cramfs, raw)
maximilian attems [Thu, 24 Jul 2008 13:08:16 +0000 (15:08 +0200)]
disk-utils: include fcntl.h directly (mkfs.cramfs, raw)

helps klibc support, glibc compile tested.

Signed-off-by: maximilian attems <max@stro.at>
16 years agowhereis: include dirent.h instead sys/dir.h
maximilian attems [Thu, 24 Jul 2008 12:25:06 +0000 (14:25 +0200)]
whereis: include dirent.h instead sys/dir.h

sys/dir.h is an old BSD'ism not carried by klibc,
include dirent directly.

compile tested against glibc.

Signed-off-by: maximilian attems <max@stro.at>
16 years agomisc-utils: write include signal.h directly
maximilian attems [Thu, 24 Jul 2008 12:18:00 +0000 (14:18 +0200)]
misc-utils: write include signal.h directly

another small step for better klibc support, glibc compile tested.

Signed-off-by: maximilian attems <max@stro.at>
16 years agodmesg: nuke old glibc 5 support
maximilian attems [Thu, 24 Jul 2008 11:44:44 +0000 (13:44 +0200)]
dmesg: nuke old glibc 5 support

dmesg.c:42: error: expected declaration specifiers or ‘...’ before ‘klogctl’
dmesg.c:42: error: expected declaration specifiers or ‘...’ before ‘type’
dmesg.c:42: error: expected declaration specifiers or ‘...’ before ‘b’
dmesg.c:42: error: expected declaration specifiers or ‘...’ before ‘len’

without belows compat section dmesg just compiles fine against klibc.
as bonus reorder the includes.

Signed-off-by: maximilian attems <max@stro.at>
16 years agodisk-utils: s/MOUNTED/_PATH_MOUNTED/
maximilian attems [Thu, 24 Jul 2008 11:00:48 +0000 (13:00 +0200)]
disk-utils: s/MOUNTED/_PATH_MOUNTED/

no longer use deprecated alias.
helps compiling util-linux-ng against klibc.

add pathnames.h include, where _PATH_MOUNTED is defined.

Signed-off-by: maximilian attems <max@stro.at>
16 years agoldattach: don't compile for non-linux systems
Samuel Thibault [Thu, 24 Jul 2008 00:27:14 +0000 (01:27 +0100)]
ldattach: don't compile for non-linux systems

There is just ldattach which doesn't compile because line disciplines are not
implemented that way on the Hurd.  Is TIOCSETD any kind of standard?  Else I
guess the patch below would be fine.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
16 years agomount: make file_t SELinux warning optional and shorter
Karel Zak [Wed, 23 Jul 2008 23:20:00 +0000 (01:20 +0200)]
mount: make file_t SELinux warning optional and shorter

The patch:

   Commit:  4edebc1486133231e38b3881325c374eda567f74
   Date:    Mon Jun 23 13:00:00 2008 +0200
   Subject: mount: warn on "file_t" selinux context

introduces a new warning. This warning should be shorter and optional
-- it means visible in verbose mode only.

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodisk-utils: clean up code, use blkdev_* functions
Samuel Thibault [Wed, 23 Jul 2008 23:15:07 +0000 (01:15 +0200)]
disk-utils: clean up code, use blkdev_* functions

[kzak@redhat.com: split the original patch to small patches]

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agofdisk: non-linux support (BLK* and HDIO_*)
Samuel Thibault [Wed, 23 Jul 2008 22:46:05 +0000 (00:46 +0200)]
fdisk: non-linux support (BLK* and HDIO_*)

BLK* and HDIO_* are not available on all platform. Work around this
in a few places.

[kzak@redhat.com: split the original patch to small patches]

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agolib: blkdev.c clean up, non-linux support
Samuel Thibault [Wed, 23 Jul 2008 22:30:21 +0000 (00:30 +0200)]
lib: blkdev.c clean up, non-linux support

[kzak@redhat.com: split the original patch to small patches]

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomount: s/MOUNTED/_PATH_MOUNTED/
maximilian attems [Wed, 23 Jul 2008 10:06:48 +0000 (12:06 +0200)]
mount: s/MOUNTED/_PATH_MOUNTED/

no longer use deprecated alias.
clears a useless compile error when compiling against klibc:
mount.c:995: error: `MOUNTED' undeclared (first use in this function)

Signed-off-by: maximilian attems <max@stro.at>
16 years agomount: sundries.h add klibc support
maximilian attems [Wed, 23 Jul 2008 21:17:40 +0000 (23:17 +0200)]
mount: sundries.h add klibc support

In file included from mount.c:34:
sundries.h:16:23: error: rpc/types.h: No such file or directory

nuke rpc/types.h to fix aboves. The file is archaism from old
integrated NFS code.

Cc: Christoph Hellwig <hch@infradead.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: maximilian attems <max@stro.at>
16 years agofdisk: don't use get_linux_version() for non-linux
Samuel Thibault [Tue, 22 Apr 2008 01:11:48 +0000 (02:11 +0100)]
fdisk: don't use get_linux_version() for non-linux

The get_linux_version() function is Linux-specific.
Work around it in a few places.

[kzak@redhat.com: split the original patch to small patches]

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomkswap: non-linux support
Samuel Thibault [Tue, 22 Apr 2008 01:11:48 +0000 (02:11 +0100)]
mkswap: non-linux support

GNU/Hurd uses linux-like swapspace, so mkswap makes sense on
non-linux platforms too.

[kzak@redhat.com: split the original patch to small patches]

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agobuild-sys: cleanup sys-utils/Makefile.am
Karel Zak [Tue, 22 Jul 2008 13:08:42 +0000 (15:08 +0200)]
build-sys: cleanup sys-utils/Makefile.am

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agolscpu: new command
Cai Qian [Thu, 17 Jul 2008 12:19:40 +0000 (14:19 +0200)]
lscpu: new command

Add a lscpu(1) utility program.

[kzak@redhat.com:
- indent by linux-2.6/scripts/Lindent
- add lscpu.{c,1} to sys-utils/Makefile.am
- add NLS suport
- complete code refactoring
]

Co-Author: Karel Zak <kzak@redhat.com>
Signed-off-by: Cai Qian <qcai@redhat.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 agolosetup: clean up code around LO_FLAGS_AUTOCLEAR
Karel Zak [Wed, 2 Jul 2008 13:16:11 +0000 (15:16 +0200)]
losetup: clean up code around LO_FLAGS_AUTOCLEAR

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: warn on "file_t" selinux context
Karel Zak [Mon, 23 Jun 2008 11:00:00 +0000 (13:00 +0200)]
mount: warn on "file_t" selinux context

Currently if I mount a file system without labels, it works fine, but
later or SELinux will start printing denials and stopping certain
applications from working. It would be nice if the mount command
checked it in selinux mode.

Addresses-Red-Hat-Bugzilla: #390691
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agochangelog: release
LaMont Jones [Sun, 22 Jun 2008 14:18:22 +0000 (08:18 -0600)]
changelog: release

16 years agorules: drop separate configure target
LaMont Jones [Sun, 22 Jun 2008 14:16:13 +0000 (08:16 -0600)]
rules: drop separate configure target

Addresses-Debian-Bug: 487497
Signed-off-by: LaMont Jones <lamont@debian.org>
16 years agohwclock: always reads hardware clock
Karel Zak [Tue, 17 Jun 2008 11:12:12 +0000 (13:12 +0200)]
hwclock: always reads hardware clock

It's a pity that hwclock first tries to read the clock when running

hwclock --systohc --noadjfile --utc

and exits as this fails.  I cannot see a reason to read first in that
case.

Old version:

# hwclock --systohc --noadjfile --utc --debug

hwclock from util-linux-ng 2.14
Using /dev interface to clock.
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
/dev/rtc does not have interrupt functions. Waiting in loop for time
from /dev/rtc to change
...got clock tick
Time read from Hardware Clock: 2008/06/17 11:18:24
Hw clock time : 2008/06/17 11:18:24 = 1213701504 seconds since 1969
Time elapsed since reference time has been 0.904855 seconds.
Delaying further to reach the next full second.
Setting Hardware Clock to 11:18:24 = 1213701504 seconds since 1969
ioctl(RTC_SET_TIME) was successful.

New version:

# hwclock --systohc --noadjfile --utc --debug

hwclock from util-linux-ng 2.14
Using /dev interface to clock.
Assuming hardware clock is kept in UTC time.
Time elapsed since reference time has been 0.572151 seconds.
Delaying further to reach the next full second.
Setting Hardware Clock to 11:18:52 = 1213701532 seconds since 1969
ioctl(RTC_SET_TIME) was successful.

Addresses-Debian-Bug: #478663
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agochangelog: release
LaMont Jones [Mon, 16 Jun 2008 13:44:03 +0000 (07:44 -0600)]
changelog: release

16 years agoMerge commit 'v2.14'
LaMont Jones [Mon, 16 Jun 2008 13:36:21 +0000 (07:36 -0600)]
Merge commit 'v2.14'

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 agoionice: add -t option
Lubomir Kundrak [Mon, 28 Apr 2008 11:15:26 +0000 (13:15 +0200)]
ionice: add -t option

This patch allows "tolerant" behavior, i.e. proceeding even if
priority could not be set. This might be of use in case something
(selinux, old kernel, etc.) does not allow the requested scheduling
priority to be set.

This could be to some extend done as follows:

ionice -c3 command || command

but the downside is that one could not really tell if what failed was
setting priority or command itself, which could result in duplicate
command run.

This patch solves the situation, so that user can do

ionice -t -c3 command

Addresses-Red-Hat-Bugzilla: #443842
Signed-off-by: Lubomir Kundrak <lkundrak@redhat.com>
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 agomore: dont use a.out.h
Mike Frysinger [Sat, 7 Jun 2008 17:22:45 +0000 (13:22 -0400)]
more: dont use a.out.h

The a.out.h header is not friendly to portable systems (iow, those that
lack a.out support), and since the defines are only used in a cheesy magic,
just use the magic constants.  It's not like they're ever going to change.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
16 years agomore: minor fixes to magic()
James Youngman [Wed, 14 May 2008 08:51:40 +0000 (09:51 +0100)]
more: minor fixes to magic()

Read the magic bytes into signed chars instead of vanilla chars in
order to ensure consistent results even on systems whose char type has
no sign.  Eliminate spurious parentheses in return statements.
Correct grammatical errors in comments.

Signed-off-by: James Youngman <jay@gnu.org>
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 agoUpdate menu-item number for Debian Installer components.
Frans Pop [Fri, 6 Jun 2008 05:22:19 +0000 (23:22 -0600)]
Update menu-item number for Debian Installer components.

Addresses-Debian-Bug: 484407
Signed-off-by: Frans Pop <elendil@planet.nl>
Signed-off-by: LaMont Jones <lamont@debian.org>
16 years agochangelog: release
LaMont Jones [Wed, 28 May 2008 04:46:41 +0000 (22:46 -0600)]
changelog: release

16 years agocontrol: add support for sh4
Nobuhiro Iwamatsu [Wed, 28 May 2008 04:42:49 +0000 (22:42 -0600)]
control: add support for sh4

This is a patch to support mount, fdisk-udeb and cfdisk-udeb for
SH4 architecture of debian/control.
Please apply.

Addresses-Debian-Bug: 479509
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: LaMont Jones <lamont@debian.org>
16 years agometa: fix description of bsdutils.
LaMont Jones [Wed, 28 May 2008 04:27:32 +0000 (22:27 -0600)]
meta: fix description of bsdutils.

Based on input from Justin B Rye <jbr@edlug.org.uk>.

Addresses-Debian-Bug: 482098
Signed-off-by: LaMont Jones <lamont@debian.org>
16 years agolomount: initialize sizelimit (lost in merge)
LaMont Jones [Mon, 26 May 2008 20:39:07 +0000 (14:39 -0600)]
lomount: initialize sizelimit (lost in merge)

Addresses-Ubuntu-Bug: 230974
Signed-off-by: LaMont Jones <lamont@debian.org>
16 years agochangelog: release
LaMont Jones [Mon, 19 May 2008 12:32:17 +0000 (06:32 -0600)]
changelog: release

16 years agoMerge commit 'origin/master'
LaMont Jones [Mon, 19 May 2008 12:15:09 +0000 (06:15 -0600)]
Merge commit 'origin/master'

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 agochangelog: release
LaMont Jones [Tue, 29 Apr 2008 01:52:28 +0000 (19:52 -0600)]
changelog: release

16 years agoMerge branch 'stable/v2.13'
LaMont Jones [Tue, 29 Apr 2008 01:51:36 +0000 (19:51 -0600)]
Merge branch 'stable/v2.13'

Conflicts:

debian/changelog

16 years agochangelog: release
LaMont Jones [Tue, 29 Apr 2008 01:47:57 +0000 (19:47 -0600)]
changelog: release

16 years agoMerge commit 'origin/master'
LaMont Jones [Tue, 29 Apr 2008 01:20:57 +0000 (19:20 -0600)]
Merge commit 'origin/master'

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 agoMerge branch 'stable/v2.13'
LaMont Jones [Wed, 23 Apr 2008 04:50:53 +0000 (22:50 -0600)]
Merge branch 'stable/v2.13'

Conflicts:

NEWS
configure.ac
debian/changelog
po/ca.po
po/cs.po
po/da.po
po/de.po
po/es.po
po/et.po
po/eu.po
po/fi.po
po/fr.po
po/hu.po
po/id.po
po/it.po
po/ja.po
po/nl.po
po/pl.po
po/pt_BR.po
po/ru.po
po/sl.po
po/sv.po
po/tr.po
po/uk.po
po/util-linux-ng.pot
po/vi.po

16 years agoMerge commit 'origin/master'
LaMont Jones [Wed, 23 Apr 2008 04:47:56 +0000 (22:47 -0600)]
Merge commit 'origin/master'

16 years agochangelog Release
LaMont Jones [Wed, 23 Apr 2008 04:44:54 +0000 (22:44 -0600)]
changelog Release

16 years agoMerge commit 'origin/stable/v2.13.1' into stable/v2.13
LaMont Jones [Wed, 23 Apr 2008 04:43:50 +0000 (22:43 -0600)]
Merge commit 'origin/stable/v2.13.1' into stable/v2.13

16 years agobuild-sys: release++ (2.13.1.1)
Karel Zak [Mon, 21 Apr 2008 22:34:31 +0000 (00:34 +0200)]
build-sys: release++ (2.13.1.1)

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: add v2.13.1.1 ReleaseNotes
Karel Zak [Mon, 21 Apr 2008 22:13:20 +0000 (00:13 +0200)]
docs: add v2.13.1.1 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: merge changes
Karel Zak [Mon, 21 Apr 2008 21:30:09 +0000 (23:30 +0200)]
po: merge changes

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

16 years agopo: update it.po (from translationproject.org)
Marco Colombo [Mon, 21 Apr 2008 13:22:59 +0000 (15:22 +0200)]
po: update it.po (from translationproject.org)

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 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 agochangelog: release
LaMont Jones [Fri, 18 Apr 2008 00:20:00 +0000 (18:20 -0600)]
changelog: release

16 years agoMerge branch 'stable/v2.13'
LaMont Jones [Thu, 17 Apr 2008 23:18:34 +0000 (17:18 -0600)]
Merge branch 'stable/v2.13'

16 years agocontrol: standards-version 3.7.3.0
LaMont Jones [Thu, 17 Apr 2008 23:13:27 +0000 (17:13 -0600)]
control: standards-version 3.7.3.0

Signed-off-by: LaMont Jones <lamont@debian.org>
16 years agoMerge branch 'stable/v2.13'
LaMont Jones [Thu, 17 Apr 2008 23:09:54 +0000 (17:09 -0600)]
Merge branch 'stable/v2.13'

16 years agocontrol: drop -1 version from libslang2-dev build-dep
LaMont Jones [Thu, 17 Apr 2008 23:09:43 +0000 (17:09 -0600)]
control: drop -1 version from libslang2-dev build-dep

Signed-off-by: LaMont Jones <lamont@debian.org>