]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
15 years agobuild-sys: release++ (v2.14.2-rc2) v2.14.2-rc2
Karel Zak [Thu, 22 Jan 2009 13:25:06 +0000 (14:25 +0100)] 
build-sys: release++ (v2.14.2-rc2)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: update v2.14.2 ReleaseNotes
Karel Zak [Thu, 22 Jan 2009 13:20:46 +0000 (14:20 +0100)] 
docs: update v2.14.2 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: update AUTHORS file
Karel Zak [Thu, 22 Jan 2009 13:17:28 +0000 (14:17 +0100)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopo: merge changes
Karel Zak [Thu, 22 Jan 2009 13:15:12 +0000 (14:15 +0100)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoionice: a little cleanup of "none" description
Karel Zak [Thu, 22 Jan 2009 11:54:06 +0000 (12:54 +0100)] 
ionice: a little cleanup of "none" description

We practically have three io scheduling classes. The "none" is
de facto "best-effort" class for processes that has not asked
for io priority.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: cleans up mount(8) troff markup
Sam Varshavchik [Wed, 3 Dec 2008 03:16:32 +0000 (22:16 -0500)] 
mount: cleans up mount(8) troff markup

My patches correct troff markup only. No content changes.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoionice: Extend the man page to explain the "none" class and cpu-nice inheritance
Jakob Unterwurzacher [Sat, 27 Dec 2008 21:39:10 +0000 (22:39 +0100)] 
ionice: Extend the man page to explain the "none" class and cpu-nice inheritance

Extend the ionice man page to explain the "none" class and how the
cpu-nice => io-priority inheritance works.

Signed-off-by: Jakob Unterwurzacher <jakobunt@gmail.com>
15 years agomount: finalize support of quoted LABELs/UUIDs
Karel Zak [Tue, 6 Jan 2009 23:00:35 +0000 (00:00 +0100)] 
mount: finalize support of quoted LABELs/UUIDs

The [u]mount does not properly support LABEL="foo" or UUID="foo" in
/etc/fstab. This patch fix last places where we assume unquoted
LABELs/UUIDs only.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: suggest to use blockdev --setro rather than losetup
Karel Zak [Tue, 6 Jan 2009 14:20:37 +0000 (15:20 +0100)] 
mount: suggest to use blockdev --setro rather than losetup

Thanks to Christoph Hellwig.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: add info about semantics of read-only mount to mount.8
Karel Zak [Tue, 6 Jan 2009 13:39:58 +0000 (14:39 +0100)] 
mount: add info about semantics of read-only mount to mount.8

Reported-by: Joachim Wagner <jwagner@computing.dcu.ie>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: release++ (v2.14.2-rc1) v2.14.2-rc1
Karel Zak [Mon, 22 Dec 2008 18:04:32 +0000 (19:04 +0100)] 
build-sys: release++ (v2.14.2-rc1)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: update v2.14.2 ReleaseNotes
Karel Zak [Mon, 22 Dec 2008 17:59:21 +0000 (18:59 +0100)] 
docs: update v2.14.2 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopo: merge changes
Karel Zak [Mon, 22 Dec 2008 17:57:49 +0000 (18:57 +0100)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: add rootcontext= SELinux mount option
Karel Zak [Mon, 22 Dec 2008 17:46:45 +0000 (18:46 +0100)] 
mount: add rootcontext= SELinux mount option

Note, the description in the mount.8 man page is copy & paste from
rootcontext= kernel patch (by James Morris). I didn't found anything
more useful... (patches welcomed:-)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: clean up SPEC canonicalization
Karel Zak [Sat, 13 Dec 2008 01:47:42 +0000 (02:47 +0100)] 
mount: clean up SPEC canonicalization

The SPEC (fsname) field in fstab/mtab could be:

 - devname
 - NAME=value (e.g LABEL, UUID)
 - directory (MS_MOVE, MS_BIND, ..)
 - pseudo-fs keyword (tmpfs, proc, sysfs, ...)

the pseudo-fs keywords shouldn't be canonicalized to absolute path. It
means we have to differ between SPEC and mountpoint (fs_dir).

Unfortunately, the keywords was checked on wrong place. This patch
move this check to the new function canonicalize_spec().

The fsname in mtab entry is canonicalized when the FS type is not
pseudo filesystem.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: update AUTHORS file
Karel Zak [Fri, 12 Dec 2008 14:55:25 +0000 (15:55 +0100)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agorefresh gitignore
Karel Zak [Fri, 12 Dec 2008 14:03:18 +0000 (15:03 +0100)] 
refresh gitignore

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Fri, 12 Dec 2008 14:49:33 +0000 (15:49 +0100)] 
po: update cs.po (from translationproject.org)

15 years agopo: update sv.po (from translationproject.org)
Daniel Nylander [Fri, 12 Dec 2008 14:49:05 +0000 (15:49 +0100)] 
po: update sv.po (from translationproject.org)

15 years agopo: update pt_BR.po (from translationproject.org)
Rodrigo Stulzer Lopes [Fri, 12 Dec 2008 14:49:05 +0000 (15:49 +0100)] 
po: update pt_BR.po (from translationproject.org)

15 years agopo: update fr.po (from translationproject.org)
Nicolas Provost [Fri, 12 Dec 2008 14:49:05 +0000 (15:49 +0100)] 
po: update fr.po (from translationproject.org)

15 years agofdisk: remove unnecessary gettext call
Karel Zak [Fri, 12 Dec 2008 14:20:06 +0000 (15:20 +0100)] 
fdisk: remove unnecessary gettext call

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: fix mount_static_LDADD
Karel Zak [Fri, 12 Dec 2008 13:04:19 +0000 (14:04 +0100)] 
mount: fix mount_static_LDADD

Signed-off-by: Karel Zak <kzak@redhat.com>
15 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>
15 years agosetterm: fix -blank man page
Karel Zak [Fri, 5 Dec 2008 10:41:28 +0000 (11:41 +0100)] 
setterm: fix -blank man page

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoreadprofile: several strings without gettext calls
Pedro Ribeiro [Fri, 3 Oct 2008 07:27:33 +0000 (09:27 +0200)] 
readprofile: several strings without gettext calls

Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 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>
15 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>
15 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>
15 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>
15 years agomount: use subsections in mount.8 DESCRIPTION
Karel Zak [Thu, 27 Nov 2008 13:16:37 +0000 (14:16 +0100)] 
mount: use subsections in mount.8 DESCRIPTION

The DESCRIPTION section is huge non-structuralized mess. This patch is
attempt to make this part of the man page more readable.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: remove spurious newline from mount.8
Mike Frysinger [Fri, 28 Nov 2008 21:57:24 +0000 (16:57 -0500)] 
mount: remove spurious newline from mount.8

The man page display shows quote marks instead of being interpreted by the
.B statement and hidden away due to a spurious newline.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agomount: fix typo
Karel Zak [Thu, 25 Sep 2008 20:25:38 +0000 (22:25 +0200)] 
mount: fix typo

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: fix typo
Guan Xin [Mon, 29 Sep 2008 09:43:45 +0000 (11:43 +0200)] 
mount: fix typo

Signed-off-by: Guan Xin <guanx.bac@gmail.com>
15 years agomount: create separate section for fs-independent options in mount.8
Karel Zak [Thu, 27 Nov 2008 12:29:44 +0000 (13:29 +0100)] 
mount: create separate section for fs-independent options in mount.8

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: remove link to namesys.com
Karel Zak [Fri, 3 Oct 2008 07:34:25 +0000 (09:34 +0200)] 
mount: remove link to namesys.com

Ricardo Catalinas Jiménez  wrote:
  In the man page mount(8) there is the url
  "http://www.namesys.com/mount-options.html". The web site has been
  down for a long time and the Namesys company is trying to be sold.

Reported-By: Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: sync tmpfs info in mount.8 with Documentation/filesystems/tmpfs.txt
Karel Zak [Mon, 6 Oct 2008 10:56:37 +0000 (12:56 +0200)] 
mount: sync tmpfs info in mount.8 with Documentation/filesystems/tmpfs.txt

Addresses-Red-Hat-Bugzilla: #465761
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: sync FAT info in mount.8 with Documentation/filesystems/vfat.txt
Karel Zak [Mon, 6 Oct 2008 10:25:59 +0000 (12:25 +0200)] 
mount: sync FAT info in mount.8 with Documentation/filesystems/vfat.txt

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: reorder list of options in mount.8
Karel Zak [Thu, 27 Nov 2008 12:03:25 +0000 (13:03 +0100)] 
mount: reorder list of options in mount.8

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: add i_version support
Karel Zak [Thu, 27 Nov 2008 11:08:44 +0000 (12:08 +0100)] 
mount: add i_version support

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: add info about /proc/mounts to mount.1
Karel Zak [Mon, 29 Sep 2008 09:04:59 +0000 (11:04 +0200)] 
mount: add info about /proc/mounts to mount.1

Signed-off-by: Karel Zak <kzak@redhat.com>
15 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>
15 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>
15 years agomkfs.minix: fix size detection
Matthias Koenig [Thu, 6 Nov 2008 14:43:46 +0000 (15:43 +0100)] 
mkfs.minix: fix size detection

blkdev_get_size returns size in bytes, so BLOCKS has to be
calculated accordingly.
Use stat value for size if device is not a block device.

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
15 years agomkfs.cramfs: several strings without gettext calls
Pedro Ribeiro [Fri, 3 Oct 2008 06:35:16 +0000 (08:35 +0200)] 
mkfs.cramfs: several strings without gettext calls

Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolosetup: try to set up loop readonly if EACCES
Matthias Koenig [Thu, 6 Nov 2008 13:45:38 +0000 (14:45 +0100)] 
losetup: try to set up loop readonly if EACCES

Currently mounting/losetup an image fails if it is accessable readonly.

There are no problems if it is a file on a local filesystem.
It seems only to happen if it is a NFS mounted image, which is
read-write in permission but with root_squash option.

set_loop checks only for EROFS to retry open with readonly mode,
but in this case we get EACCES.

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
15 years agolosetup: several strings without gettext strings
Pedro Ribeiro [Fri, 3 Oct 2008 07:25:10 +0000 (09:25 +0200)] 
losetup: several strings without gettext strings

Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolosetup: missing EBUSY error hint message
Karel Zak [Tue, 30 Sep 2008 10:49:58 +0000 (12:49 +0200)] 
losetup: missing EBUSY error hint message

old version:
 # losetup /dev/loop0 /foo.img
 # losetup /dev/loop0 /bar.img; echo $?
 2

new version:
 # losetup /dev/loop0 /foo.img
 # losetup /dev/loop0 /bar.img; echo $?
 losetup: /dev/loop0: device is busy
 2

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolosetup: add warning about read-only mode
Karel Zak [Tue, 18 Nov 2008 14:50:38 +0000 (15:50 +0100)] 
losetup: add warning about read-only mode

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agologin: fix compiler warning (int32 time() arg)
Karel Zak [Mon, 29 Sep 2008 10:53:39 +0000 (12:53 +0200)] 
login: fix compiler warning (int32 time() arg)

login.c: In function ‘dolastlog’:
login.c:1438  warning: passing argument 1 of ‘time’ from incompatible pointer type

Unfortunately, on-disk lastlog format is always 32bit, bits/utmp.h:

  struct lastlog
  {
  #if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32
     int32_t ll_time;
  #else
     __time_t ll_time;
  #endif

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agologin: fix warning "dereferencing type-punned pointer will break strict-aliasing...
Karel Zak [Mon, 1 Sep 2008 10:41:57 +0000 (12:41 +0200)] 
login: fix warning "dereferencing type-punned pointer will break strict-aliasing rules"

This patch fix problems with odd pam_get_iten( ..., void **) API.
(tested by gcc-4.1.2-42.el5.i386)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agologger: several strings without gettext calls
Pedro Ribeiro [Fri, 3 Oct 2008 07:17:07 +0000 (09:17 +0200)] 
logger: several strings without gettext calls

Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoldattach: don't compile for non-linux systems
Samuel Thibault [Fri, 12 Dec 2008 11:52:21 +0000 (12:52 +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>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agohwclock: remove x86_64-specific bogon
David Brownell [Tue, 12 Aug 2008 10:13:52 +0000 (03:13 -0700)] 
hwclock: remove x86_64-specific bogon

I was puzzled why "hwclock" wrongly reported my x86_64 sytem didn't
support RTC update interrupts.  Bogus #ifdef, that's why ... added
by the 2.11y patch (from 2.11t).  Probably this whole #ifdef should
just vanish ... if the kernel rejects UIE_ON, the program ought to
just cope with it.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
15 years agohwclock: remove "cli" and "sti" from i386 CMOS code
Karel Zak [Thu, 16 Oct 2008 21:37:38 +0000 (23:37 +0200)] 
hwclock: remove "cli" and "sti" from i386 CMOS code

The protection against context switch is nonsense. There is possible
to optimize the access to CMOS by mlockall(MCL_CURRENT) and SCHED_FIFO.

For more details see: http://lkml.org/lkml/2008/10/12/132

Reported-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agofdisk: support +cylinder notation
Karel Zak [Thu, 13 Nov 2008 22:08:34 +0000 (23:08 +0100)] 
fdisk: support +cylinder notation

Currently fdisk does not support +cylinder notation and reports
"Unsupported suffix: ''".

Reported-by: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agofdisk: several strings without gettext calls
Pedro Ribeiro [Fri, 3 Oct 2008 06:52:35 +0000 (08:52 +0200)] 
fdisk: several strings without gettext calls

Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agofdisk: fix man page typo
Karel Zak [Tue, 25 Nov 2008 15:19:36 +0000 (16:19 +0100)] 
fdisk: fix man page typo

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agofdisk: remove obsolete information from man page
Karel Zak [Mon, 18 Aug 2008 11:15:10 +0000 (13:15 +0200)] 
fdisk: remove obsolete information from man page

Signed-off-by: Karel Zak <kzak@redhat.com>
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>
15 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>
15 years agobuild-sys: release++ (v2.14.1) 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>
15 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>
15 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>
15 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)

15 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)

15 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)

15 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)

15 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)

15 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)

15 years agobuild-sys: release++ (v2.14.1-rc2) 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>
15 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>
15 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>
15 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>
15 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)

15 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>
15 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>
15 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>
15 years agobuild-sys: release++ (v2.14.1-rc1) 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>
15 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>
15 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>
15 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>
15 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)

15 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)

15 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>
15 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>
15 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>
15 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>
15 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>
15 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>
15 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>
15 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>
15 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>
15 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>