Hallo,
1 - seems to be a critical bug in chmod,
if superuser flags were set, you can not reset them by using chmod
<decimal>decimal [ file | dir | ... ]
2 - bug in positional esc- seuqence interpreting
under console - "linux" and "xterm
A code example is appended.
Try out under linux and you will see the bugs immediately.
### CODE BEGIN ###
#!/usr/bin/bash
echo "!!!"
echo "!!! problems with \"chmod\" delivered by opensuse 10.2"
echo "!!!"
#
# create directory for testing fileaccess
#
testdir="abcd"
echo "new directory \"abcd\" creating"
[ - d "${testdir}" ] && rm - rf "${testdir}"
mkdir "${testdir}"
echo
for fileaccess in "0000" "1000" "2000" "4000" "0000"
do
echo "$ chmod ${fileaccess} \"${testdir}\""
chmod ${fileaccess} "${testdir}"
chmod 0000 "${testdir}"
ls - ld "${testdir}"
echo "expecting fileaccess 0000, after set/reset process!"
echo
echo
done
echo "the using off \"chmod u- s\", \"chmod g- s\" works as expected"
echo
echo
echo "!!!"
echo "!!! problems with positional ESC- sequences under \"linux- console\" and
\"xterm\""
echo "!!! delivered by suse 9.x and opensuse 10.2"
echo "!!!"
#
# ENSURE:
# xterm 222 has a bug in interpretating Escape- Sequences
# $ echo - e "\015\033[- 1Cxxx" starts string "xxx" at position 0, ok
# $ echo - e "\015\033[0Cxxx" starts string "xxx" at position 2, not ok
# $ echo - e "\015\033[1Cxxx" starts string "xxx" at position 2, ok
# $ echo - e "\015\033[2Cxxx" starts string "xxx" at position 3, ok
# a.s.o
echo "May be, there will be a possible bug in xterm and console,"
echo "if using positional ESC- squences."
echo "xterm- only problem, the console does not interpret values less than 1"
echo "... - \".\" marks expected starting in x- position from \"- 1\",
different interpretation"
echo - e "\015\033[- 1Cxxx"
echo
echo "... - \".\" marks expected starting in x- position from \"0\", this is
not ok"
echo - e "\015\033[0Cxxx"
echo
echo "... - \".\" marks expected starting in x- position from \"1\", this is
ok"
echo - e "\015\033[1Cxxx"
echo
echo "... - \".\" marks expected starting in x- position from \"2\", this ok"
echo - e "\015\033[2Cxxx"
### CODE END ###
Possible you got an idea for workaround or patch?
Thanks for feedback.
Yours sincerely,
Benjamin Kravanja
____________________________________________
*Benjamin Kravanja*
**Analyst and Developer
*email [EMAIL PROTECTED]
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils