Skip to content

Commit b083703

Browse files
committed
Merge branch 'cb/uname-in-untracked' into maint
An experimental "untracked cache" feature used uname(2) in a slightly unportable way. * cb/uname-in-untracked: untracked: fix detection of uname(2) failure
2 parents 4f66e44 + 100e433 commit b083703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1848,7 +1848,7 @@ static const char *get_ident_string(void)
18481848

18491849
if (sb.len)
18501850
return sb.buf;
1851-
if (uname(&uts))
1851+
if (uname(&uts) < 0)
18521852
die_errno(_("failed to get kernel name and information"));
18531853
strbuf_addf(&sb, "Location %s, system %s %s %s", get_git_work_tree(),
18541854
uts.sysname, uts.release, uts.version);

0 commit comments

Comments
 (0)