~ubuntu-branches/debian/sid/util-linux/sid

« back to all changes in this revision

Viewing changes to login-utils/chfn.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, Aurelien Jarno, Mike Frysinger, LaMont Jones, Chris Webb, Rajeev V. Pillai, Tom Prince, Karel Zak, localization folks
  • Date: 2009-05-29 04:19:25 UTC
  • mfrom: (1.3.1 upstream) (5.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20090529041925-vrgj0hskukfog849
Tags: 2.15.1~rc1-1
[Aurelien Jarno]

* chrt: don't assume SCHED_BATCH and SCHED_IDLE exist
* kFreeBSD hackery for building.  Closes: #527384

[Mike Frysinger]

* lscpu: fix cpuid code on x86/PIC
* losetup: handle symlinks in /dev/loop/

[LaMont Jones]

* Add keybuk as uploader.

[Chris Webb]

* fdisk: (and cfdisk) fix to be consistent about maximum heads

[Rajeev V. Pillai]

* cal: Highlight today even when month or year specified

[Tom Prince]

* cal: uClibc has langinfo.h but not _NL_TIME_WEEK_1STDAY.

[Karel Zak]

* build-sys: fix "make -C" bug
* build-sys: fix blkid.h include for old e2fsprogs
* blkid: make libuuid optional
* blkid: fix "hangs forever with partition type mdraid"
* blkid: blkid_do_safeprobe() has to be tolerant to RAIDs
* blkid: cleanup debug messages and return codes in blkid_do_probe()
* mount: fix undefined reference to `security_get_initial_context'.  gentoo:
  #270168
* libblkid: update man page
* libblkid: fix reiserfs name
* build-sys: add UTIL_{SET,RESTORE}_FLAGS
* build-sys: fix blkid detection in configure.ac
* tests: add mdraid libblkid test
* tests: fix reiserfs test
* tests: don't run some mount tests for non-root users
* tests: remove broken Xen dumps for lscpu
* tests: move lscpu /proc and /sys dumps to tarballs
* tests: fix script that creates lscpu dumps
* docs: update AUTHORS file
* docs: add v2.15.1 ReleaseNotes
* docs: add missing commands/projects to AUTHORS file
* build-sys: release++ (v2.15.1-rc1)
* po: merge changes

[localization folks]

* po: update vi.po (from translationproject.org) (Clytie Siddall)

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
    }
149
149
 
150
150
#ifdef HAVE_LIBSELINUX
151
 
    if (is_selinux_enabled()) {
 
151
    if (is_selinux_enabled() > 0) {
152
152
      if(uid == 0) {
153
153
        if (checkAccess(oldf.username,PASSWD__CHFN)!=0) {
154
154
          security_context_t user_context;
186
186
 
187
187
        retcode = pam_start("chfn", oldf.username, &conv, &pamh);
188
188
        if(retcode != PAM_SUCCESS) {
189
 
            fprintf(stderr, _("chfn: PAM Failure, aborting: %s\n"),
190
 
                        pam_strerror(pamh, retcode));
 
189
            fprintf(stderr, _("%s: PAM failure, aborting: %s\n"),
 
190
                    whoami, pam_strerror(pamh, retcode));
191
191
            exit(1);
192
192
        }
193
193
 
374
374
    struct finfo *oldfp;
375
375
    struct finfo *newfp;
376
376
{
377
 
    newfp->full_name = prompt ("Name", oldfp->full_name);
378
 
    newfp->office = prompt ("Office", oldfp->office);
379
 
    newfp->office_phone = prompt ("Office Phone", oldfp->office_phone);
380
 
    newfp->home_phone = prompt ("Home Phone", oldfp->home_phone);
 
377
    newfp->full_name = prompt (_("Name"), oldfp->full_name);
 
378
    newfp->office = prompt (_("Office"), oldfp->office);
 
379
    newfp->office_phone = prompt (_("Office Phone"), oldfp->office_phone);
 
380
    newfp->home_phone = prompt (_("Home Phone"), oldfp->home_phone);
381
381
    printf ("\n");
382
382
}
383
383