Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-5698

/etc/profile.d/lang.sh: [ -f $langfile] always evaluates true - needs quotes

    • None
    • Low
    • rhel-sst-cs-plumbers
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • ---
    • None

      Description of problem:
      In /etc/profile.d/lang.sh
      for langfile in /etc/locale.conf "$HOME/.i18n" ; do
      [ -f $langfile ] && . $langfile && sourced=1
      done
      [ -f $langfile ] always evaluates to true regardless of whether langfile is set or not. $langfile should be in quotes. This is fixed in RHEL 8.6, at least.

      Version-Release number of selected component (if applicable):
      initscripts-9.49.53-1.el7_9.1.x86_64

      How reproducible:
      always

      Steps to Reproduce:
      1. cat /etc/profile.d/lang.sh
      2.
      3.

      Actual results:

      Expected results:

      Additional info:

              jamacku@redhat.com Jan Macku
              jira-bugzilla-migration RH Bugzilla Integration
              Jan Macku Jan Macku
              Daniel Rusek Daniel Rusek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: