Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 28126 Details for
Bug 45448
media-video/xine-ui: Symlink/tmpfile bug in xine-check and xine-bugreport
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add symlink checks to xine-check (& xine-bugreport)
xine-check.patch (text/plain), 6.34 KB, created by
Julian Phillips
on 2004-03-26 16:38:03 UTC
(
hide
)
Description:
add symlink checks to xine-check (& xine-bugreport)
Filename:
MIME Type:
Creator:
Julian Phillips
Created:
2004-03-26 16:38:03 UTC
Size:
6.34 KB
patch
obsolete
>--- misc/xine-bugreport 2004-02-17 20:56:16.000000000 +0000 >+++ misc/xine-bugreport 2004-03-27 00:16:27.764287750 +0000 >@@ -567,6 +567,7 @@ > short= > description= > tmpfile=/tmp/xine-check-dsc.$$ >+ check_tmpfile; > true >$tmpfile > cat $messagefile | while read line; do > if $found; then >@@ -714,6 +715,45 @@ > read answer > } > >+check_bugreport() { >+ if test -f "$bugreport"; then >+ echo "Hmmm, I already found a bug report in ${bugreport}." >+ if yesno "Do you want me to overwrite that file?"; then >+ rm "$bugreport" || clean_exit 1 >+ else >+ echo "Okay, aborting on your request." >+ clean_exit 0 >+ fi >+ fi >+ >+ if test -h "$bugreport"; then >+ echo "Hmmm, I already found another file in ${bugreport}." >+ if yesno "Do you want me to try to overwrite that file?"; then >+ rm "$bugreport" || clean_exit 1 >+ else >+ echo "Okay, aborting on your request." >+ clean_exit 0 >+ fi >+ fi >+} >+ >+check_logfile() { >+ if test -h "$logfile"; then >+ echo "Hmmm, I already found another file in ${logfile}." >+ if yesno "Do you want me to try to overwrite that file?"; then >+ rm "$logfile" || clean_exit 1 >+ else >+ echo "Okay, aborting on your request." >+ clean_exit 0 >+ fi >+ fi >+} >+ >+check_tmpfile() { >+ if test -h "$tmpfile"; then >+ rm "$tmpfile" || clean_exit 1 >+ fi >+} > > # command line > while [ "$#" -gt 0 ]; do >@@ -763,12 +803,11 @@ > if [ "$runmode" = "bugreport" ]; then > do_log=true > logfile=/tmp/xine-check.log >+ check_logfile; > echo logging to ${logfile}... > echo >$logfile > fi > >- >- > ## actual checks start here: > > case `id` in >@@ -1173,16 +1212,6 @@ > clean_exit 0 > fi > >-if test -f "$bugreport"; then >- echo "Hmmm, I already found a bug report in ${bugreport}." >- if yesno "Do you want me to overwrite that file?"; then >- rm "$bugreport" >- else >- echo "Okay, aborting on your request." >- clean_exit 0 >- fi >-fi >- > echo > echo > if yesno "Could you solve your xine problems using the previous hints?"; then >@@ -1190,6 +1219,8 @@ > clean_exit > fi > >+check_bugreport; >+ > echo > echo "What kind of trouble does xine cause for you?" > echo >--- misc/xine-check 2004-02-17 20:56:16.000000000 +0000 >+++ misc/xine-check 2004-03-27 00:16:27.764287750 +0000 >@@ -567,6 +567,7 @@ > short= > description= > tmpfile=/tmp/xine-check-dsc.$$ >+ check_tmpfile; > true >$tmpfile > cat $messagefile | while read line; do > if $found; then >@@ -714,6 +715,45 @@ > read answer > } > >+check_bugreport() { >+ if test -f "$bugreport"; then >+ echo "Hmmm, I already found a bug report in ${bugreport}." >+ if yesno "Do you want me to overwrite that file?"; then >+ rm "$bugreport" || clean_exit 1 >+ else >+ echo "Okay, aborting on your request." >+ clean_exit 0 >+ fi >+ fi >+ >+ if test -h "$bugreport"; then >+ echo "Hmmm, I already found another file in ${bugreport}." >+ if yesno "Do you want me to try to overwrite that file?"; then >+ rm "$bugreport" || clean_exit 1 >+ else >+ echo "Okay, aborting on your request." >+ clean_exit 0 >+ fi >+ fi >+} >+ >+check_logfile() { >+ if test -h "$logfile"; then >+ echo "Hmmm, I already found another file in ${logfile}." >+ if yesno "Do you want me to try to overwrite that file?"; then >+ rm "$logfile" || clean_exit 1 >+ else >+ echo "Okay, aborting on your request." >+ clean_exit 0 >+ fi >+ fi >+} >+ >+check_tmpfile() { >+ if test -h "$tmpfile"; then >+ rm "$tmpfile" || clean_exit 1 >+ fi >+} > > # command line > while [ "$#" -gt 0 ]; do >@@ -763,12 +803,11 @@ > if [ "$runmode" = "bugreport" ]; then > do_log=true > logfile=/tmp/xine-check.log >+ check_logfile; > echo logging to ${logfile}... > echo >$logfile > fi > >- >- > ## actual checks start here: > > case `id` in >@@ -1173,16 +1212,6 @@ > clean_exit 0 > fi > >-if test -f "$bugreport"; then >- echo "Hmmm, I already found a bug report in ${bugreport}." >- if yesno "Do you want me to overwrite that file?"; then >- rm "$bugreport" >- else >- echo "Okay, aborting on your request." >- clean_exit 0 >- fi >-fi >- > echo > echo > if yesno "Could you solve your xine problems using the previous hints?"; then >@@ -1190,6 +1219,8 @@ > clean_exit > fi > >+check_bugreport; >+ > echo > echo "What kind of trouble does xine cause for you?" > echo >--- misc/xine-check.sh.in 2004-02-17 20:56:16.000000000 +0000 >+++ misc/xine-check.sh.in 2004-03-27 00:16:27.764287750 +0000 >@@ -567,6 +567,7 @@ > short= > description= > tmpfile=/tmp/xine-check-dsc.$$ >+ check_tmpfile; > true >$tmpfile > cat $messagefile | while read line; do > if $found; then >@@ -714,6 +715,45 @@ > read answer > } > >+check_bugreport() { >+ if test -f "$bugreport"; then >+ echo "Hmmm, I already found a bug report in ${bugreport}." >+ if yesno "Do you want me to overwrite that file?"; then >+ rm "$bugreport" || clean_exit 1 >+ else >+ echo "Okay, aborting on your request." >+ clean_exit 0 >+ fi >+ fi >+ >+ if test -h "$bugreport"; then >+ echo "Hmmm, I already found another file in ${bugreport}." >+ if yesno "Do you want me to try to overwrite that file?"; then >+ rm "$bugreport" || clean_exit 1 >+ else >+ echo "Okay, aborting on your request." >+ clean_exit 0 >+ fi >+ fi >+} >+ >+check_logfile() { >+ if test -h "$logfile"; then >+ echo "Hmmm, I already found another file in ${logfile}." >+ if yesno "Do you want me to try to overwrite that file?"; then >+ rm "$logfile" || clean_exit 1 >+ else >+ echo "Okay, aborting on your request." >+ clean_exit 0 >+ fi >+ fi >+} >+ >+check_tmpfile() { >+ if test -h "$tmpfile"; then >+ rm "$tmpfile" || clean_exit 1 >+ fi >+} > > # command line > while [ "$#" -gt 0 ]; do >@@ -763,12 +803,11 @@ > if [ "$runmode" = "bugreport" ]; then > do_log=true > logfile=/tmp/xine-check.log >+ check_logfile; > echo logging to ${logfile}... > echo >$logfile > fi > >- >- > ## actual checks start here: > > case `id` in >@@ -1173,16 +1212,6 @@ > clean_exit 0 > fi > >-if test -f "$bugreport"; then >- echo "Hmmm, I already found a bug report in ${bugreport}." >- if yesno "Do you want me to overwrite that file?"; then >- rm "$bugreport" >- else >- echo "Okay, aborting on your request." >- clean_exit 0 >- fi >-fi >- > echo > echo > if yesno "Could you solve your xine problems using the previous hints?"; then >@@ -1190,6 +1219,8 @@ > clean_exit > fi > >+check_bugreport; >+ > echo > echo "What kind of trouble does xine cause for you?" > echo
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 45448
: 28126