projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed test suite to work with Solaris Bourne shell:
[mmh]
/
uip
/
annosbr.c
diff --git
a/uip/annosbr.c
b/uip/annosbr.c
index
87e9580
..
5b9fff4
100644
(file)
--- a/
uip/annosbr.c
+++ b/
uip/annosbr.c
@@
-183,7
+183,7
@@
annosbr (int fd, char *file, char *comp, char *text, int inplace, int datesw, in
int length; /* length of field name */
int n; /* number of bytes written */
int length; /* length of field name */
int n; /* number of bytes written */
- mode = fstat (fd, &st) != NOTOK ? (st.st_mode & 0777) : m_gmprot ();
+ mode = fstat (fd, &st) != NOTOK ? (int) (st.st_mode & 0777) : m_gmprot ();
strncpy (tmpfil, m_mktemp2(file, "annotate", NULL, &tmp), sizeof(tmpfil));
chmod (tmpfil, mode);
strncpy (tmpfil, m_mktemp2(file, "annotate", NULL, &tmp), sizeof(tmpfil));
chmod (tmpfil, mode);