diff mbox

[ovs-dev,v2,3/5] utilities: OS X compatibility

Message ID 1458057179-27633-4-git-send-email-lrichard@redhat.com
State Accepted
Headers show

Commit Message

Lance Richardson March 15, 2016, 3:52 p.m. UTC
Handle OS X like other BSDs (date -r is not supported, use sha1
instead of sha1sum).

Signed-off-by: Lance Richardson <lrichard@redhat.com>
---
Changes from v1: None

 utilities/ovs-pki.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ben Pfaff March 23, 2016, 1:42 a.m. UTC | #1
On Tue, Mar 15, 2016 at 11:52:57AM -0400, Lance Richardson wrote:
> Handle OS X like other BSDs (date -r is not supported, use sha1
> instead of sha1sum).
> 
> Signed-off-by: Lance Richardson <lrichard@redhat.com>

Applied, thanks!
diff mbox

Patch

diff --git a/utilities/ovs-pki.in b/utilities/ovs-pki.in
index a96ada3..9b2b5aa 100755
--- a/utilities/ovs-pki.in
+++ b/utilities/ovs-pki.in
@@ -27,7 +27,7 @@  bits=2048
 
 # OS-specific compatibility routines
 case $(uname -s) in
-FreeBSD|NetBSD)
+FreeBSD|NetBSD|Darwin)
     file_mod_epoch()
     {
         stat -r "$1" | awk '{print $10}'