The call to mknod returns 0, but the sticky bit is not set.<br>I have to execute chmod(path, S_ISVTX) to set the sticky bit after mknod.<br><br>Best,<br>Ken <br><br><br><br><br><div class="gmail_quote">2011/5/31 Amar Tumballi <span dir="ltr">&lt;<a href="mailto:amar@gluster.com">amar@gluster.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Oops! correction. try<br><br><div>ret = mknod (path, S_IFREG | S_ISVTX, 0); </div><div><br></div><div>instead of<br><div>
<br><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>ret = mkdir (path, S_IFREG | S_ISVTX, 0);</div><div><br></div></blockquote><div><br></div></div><div>or chmod();</div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div></div><div>see whats the behavior.</div>
<div><br></div><div>Regards,</div><div>Amar<div><div></div><div><br><br></div></div></div></blockquote></div></div></div></div>
<br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://gluster.org/cgi-bin/mailman/listinfo/gluster-users" target="_blank">http://gluster.org/cgi-bin/mailman/listinfo/gluster-users</a><br>
<br></blockquote></div><br>