next message in archive
no next message in thread
previous message in archive
Index of Subjects
Currently, when a user is granted privilaged access, the bookmarks file
created are done in english. (Regardless of that user's language
preference).
Here's a patch to fix the csuite/admin-bin/priv-access script:
----------------------- CUT HERE ---------------------------
--- priv-edit Sat Jun 28 18:08:42 1997
+++ priv-edit-frugal Sat Jun 28 18:10:16 1997
@@ -40,7 +40,7 @@
gawk -F'|' -v urls=$url '
BEGIN { n = split(urls, x, ","); for (i = 1; i <= n; i++) u[x[i]] = 1 }
$1 in u { print "<li>" $3 "" }
- ' $CS_CONF/urls
+ ' $CS_CONF/urls.$LANG
}
# initialization, first time only
@@ -112,7 +112,9 @@
fi
home=`eval echo ~$u`
if [ ! -f $home/bkmk_$group.html ]; then
+ old_lang=$LANG ; export LANG=`user_lang_pref $u`
make_bookmarks >$home/bkmk_$group.html
+ export LANG=$old_lang
chown $u $home/bkmk_$group.html
chmod 600 $home/bkmk_$group.html
else
----------------------- CUT HERE ---------------------------
With approval, I'll make this change in the distribution.
--
James Fifield
fifield@ug.cs.dal.ca
CSuite Technical Staff
"Those who are willing to give up some liberty for some security lose
both and deserve neither." - Ben Franklin (I think)
next message in archive
no next message in thread
previous message in archive
Index of Subjects