diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2008-07-25 14:15:51 -0400 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2008-07-25 14:15:51 -0400 |
commit | 27886befbbb9d890284871acc5a3a36ff61e3e19 (patch) | |
tree | 0ad2a885f5ecf1e40750ee8f02d5e1918c667b72 /src/common | |
parent | fa21b9830c0998b985a173ee3e3489ebd71b4ac4 (diff) |
allowing expiration dates with strings longer than one digit (e.g. "10m" meaning "10 months")
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -115,7 +115,7 @@ translate_ssh_variables() { # test that a string to conforms to GPG's expiration format test_gpg_expire() { - echo "$1" | egrep -q "^[0-9][mwy]?$" + echo "$1" | egrep -q "^[0-9]+[mwy]?$" } # check that a file is properly owned, and that all it's parent |