Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 301316 Details for
Bug 171280
faxspool does not honour -t hh:mm-hh:mm arguments
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to make -t work as expected
mgetty-1.1.33-time_range.patch (text/plain), 2.70 KB, created by
Martin Nagy
on 2008-04-04 17:46:22 UTC
(
hide
)
Description:
Patch to make -t work as expected
Filename:
MIME Type:
Creator:
Martin Nagy
Created:
2008-04-04 17:46:22 UTC
Size:
2.70 KB
patch
obsolete
>diff -up mgetty-1.1.33/fax/faxspool.in.time_range mgetty-1.1.33/fax/faxspool.in >--- mgetty-1.1.33/fax/faxspool.in.time_range 2008-04-04 19:13:06.000000000 +0200 >+++ mgetty-1.1.33/fax/faxspool.in 2008-04-04 19:15:16.000000000 +0200 >@@ -539,8 +539,22 @@ do > $echo "Invalid time specified: $h:$m" >&2; exit 2 > fi > TIME="$h$m" >+ elif expr "$2" : "[0-2][0-9]:[0-9][0-9]-[0-2][0-9]:[0-9][0-9]$" >/dev/null >+ then >+ h=`expr "$2" : "\(..\)"` >+ m=`expr "$2" : "..:\(..\)"` >+ h2=`expr "$2" : "..:..-\(..\)"` >+ m2=`expr "$2" : "..:..-..:\(..\)"` >+ if [ "$h" -gt 23 -o "$m" -gt 60 ] >+ then >+ $echo "Invalid time specified: $h:$m" >&2; exit 2 >+ elif [ "$h2" -gt 23 -o "$m2" -gt 60 ] >+ then >+ $echo "Invalid time specified: $h2:$m2" >&2; exit 2 >+ fi >+ TIME="$h$m-$h2$m2" > else >- $echo "Time must be in <hh:mm> format." >&2; exit 2 >+ $echo "Time must be in <hh:mm> or <hh:mm-hh:mm> format." >&2; exit 2 > fi > shift ; shift > ;; >diff -up mgetty-1.1.33/fax/faxrunq.in.time_range mgetty-1.1.33/fax/faxrunq.in >--- mgetty-1.1.33/fax/faxrunq.in.time_range 2008-04-04 19:13:14.000000000 +0200 >+++ mgetty-1.1.33/fax/faxrunq.in 2008-04-04 19:16:24.000000000 +0200 >@@ -168,17 +168,18 @@ do > # read job using 'tr', remove all quote characters, dollar, and backslash > # > eval `tr -d '\042\047\140\134\044\073' <JOB | \ >- $AWK 'BEGIN { user=""; mail=""; verbto=""; time=""; re=""; ah=""; } >+ $AWK 'BEGIN { user=""; mail=""; verbto=""; time=""; time_to=""; re=""; ah=""; } > $1=="user" { user=$2 } > $1=="mail" { mail=substr( $0, 6) } > $1=="phone" { printf "PHONE=%s;", $2 } >- $1=="time" { time=$2 } >+ $1=="time" { time=substr($2,1,4); time_to=substr($2,6,4); } > $1=="verbose_to" { verbto=substr($0,12) } > $1=="subject" { re=substr($0,9) } > $1=="acct_handle" { ah=substr($0,13) } > END { if ( mail != "" ) printf "MAIL_TO=\"%s\";", mail > else printf "MAIL_TO=\"%s\";", user > printf "TIME=\"%s\";", time >+ printf "TIME_TO=\"%s\";", time_to > printf "VERBOSE_TO=\"%s\";", verbto > printf "RE=\"%s\"; AH=\"%s\"", re, ah }' - ` > >@@ -187,11 +188,25 @@ do > # > if [ ! -z "$TIME" ] > then >- if [ `date "+%H""%M"` -lt $TIME ] >+ if [ -z $TIME_TO ] > then >- $echo "...send time not reached, postponing job" >- rm JOB.locked >- continue >+ TIME_TO="0000" >+ fi >+ if [ $TIME -lt $TIME_TO ] >+ then >+ if [ `date "+%H""%M"` -lt $TIME -o `date "+%H""%M"` -gt $TIME_TO ] >+ then >+ $echo "...send time not reached, postponing job" >+ rm JOB.locked >+ continue >+ fi >+ else >+ if [ `date "+%H""%M"` -lt $TIME -o `date "+%H""%M"` -lt $TIME_TO ] >+ then >+ $echo "...send time not reached, postponing job" >+ rm JOB.locked >+ continue >+ fi > fi > fi >
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 171280
: 301316