Changeset 89cdf9c7


Ignore:
Timestamp:
11/15/13 09:26:56 (13 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
a819105
Parents:
2ec77c7
Message:

Fix PCDMd to use a randomized authorization file name in the /tmp directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/PCDM/PCDMd

    ref7d8db r89cdf9c7  
    55 
    66PCDMCONF="/usr/local/etc/pcdm.conf" 
    7 PCDMAUTHFILE="/tmp/.PCDMAuth" 
     7BASEPCDMAUTHFILE="/tmp/.PCDMAuth" 
    88 
    99XOPTS="" 
     
    3939while [ ! -e /var/run/nologin ]; do 
    4040  /usr/local/bin/pc-checkxdisplay 
     41  # Randomize the authorization file location 
     42  PCDMAUTHFILE=${BASEPCDMAUTHFILE}-`openssl rand -hex 10` 
    4143  # Make sure the authorization file does not exist 
    4244  if [ -f ${PCDMAUTHFILE} ]; then 
     
    5153  fi 
    5254  xinit /usr/local/bin/PCDM-session -once -- :0 -auth ${PCDMAUTHFILE} $XOPTS 
     55  #Now remove the authorization file 
     56  rm ${PCDMAUTHFILE} 
    5357done 
Note: See TracChangeset for help on using the changeset viewer.