git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48980f7
)
Set errno = ENOSYS if mmap not supported.
author
Tim Potter
<tpot@samba.org>
Tue, 14 Oct 2003 03:38:24 +0000
(
03:38
+0000)
committer
Tim Potter
<tpot@samba.org>
Tue, 14 Oct 2003 03:38:24 +0000
(
03:38
+0000)
From Joachim Schmitz <schmitz@hp.com>
(This used to be commit
22655a65ab73576557487e73c550b45296e534ec
)
source3/utils/profiles.c
patch
|
blob
|
history
diff --git
a/source3/utils/profiles.c
b/source3/utils/profiles.c
index 20b1222e72372102a2fb0577d3ff6fef66dd021a..a31674dfb2e2e80554a42cb7bcff35e8c98bd391 100644
(file)
--- a/
source3/utils/profiles.c
+++ b/
source3/utils/profiles.c
@@
-614,6
+614,7
@@
int main(int argc, char *argv[])
base = mmap(&start, sbuf.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
#else
base = (char *)-1;
+ errno = ENOSYS;
#endif
if ((int)base == -1) {