~ubuntu-branches/ubuntu/oneiric/base-files/oneiric-proposed

« back to all changes in this revision

Viewing changes to share/profile

  • Committer: Barry Warsaw
  • Date: 2011-07-07 20:46:32 UTC
  • mfrom: (74.1.3 base-files)
  • Revision ID: barry@python.org-20110707204632-h9flopkec8pbt2ic
Tags: 6.3ubuntu4
Removed duplicate code in share/profile, causing /etc/profile.d/*
scripts to be executed twice (LP: #790050)

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    fi
26
26
  fi
27
27
fi
28
 
 
29
 
# The default umask is now handled by pam_umask.
30
 
# See pam_umask(8) and /etc/login.defs.
31
 
 
32
 
if [ -d /etc/profile.d ]; then
33
 
  for i in /etc/profile.d/*.sh; do
34
 
    if [ -r $i ]; then
35
 
      . $i
36
 
    fi
37
 
  done
38
 
  unset i
39
 
fi