On Wed, Jul 4, 2012 at 8:51 PM, Sebastian Dransfeld <s...@tango.flipp.net> 
wrote:
> You need it because of sudo, which I guess you don't have in windows.

no sudo on Windows. So it's not a problem to have those functions as empty ?

Vincent

>
> S.
>
> Den 4. juli 2012 kl. 20:38 skrev "Enlightenment SVN" 
> <no-re...@enlightenment.org>:
>
>> Log:
>> Efreet: can not implement efreet_fsetowner() and efreet_setowner() on Windows
>>
>>  Seb: is it annoying ?
>>
>>
>> Author:       caro
>> Date:         2012-07-04 11:38:46 -0700 (Wed, 04 Jul 2012)
>> New Revision: 73296
>> Trac:         http://trac.enlightenment.org/e/changeset/73296
>>
>> Modified:
>>  trunk/efreet/src/lib/efreet.c
>>
>> Modified: trunk/efreet/src/lib/efreet.c
>> ===================================================================
>> --- trunk/efreet/src/lib/efreet.c    2012-07-04 18:37:37 UTC (rev 73295)
>> +++ trunk/efreet/src/lib/efreet.c    2012-07-04 18:38:46 UTC (rev 73296)
>> @@ -48,17 +48,22 @@
>> static void efreet_parse_locale(void);
>> static int efreet_parse_locale_setting(const char *env);
>>
>> +#ifndef _WIN32
>> static uid_t ruid;
>> static uid_t rgid;
>> +#endif
>>
>> EAPI int
>> efreet_init(void)
>> {
>> +#ifndef _WIN32
>>     char *tmp;
>> +#endif
>>
>>     if (++_efreet_init_count != 1)
>>         return _efreet_init_count;
>>
>> +#ifndef _WIN32
>>     /* Find users real uid and gid */
>>     tmp = getenv("SUDO_UID");
>>     if (tmp)
>> @@ -71,6 +76,7 @@
>>         rgid = strtoul(tmp, NULL, 10);
>>     else
>>         rgid = getgid();
>> +#endif
>>
>>     if (!eina_init())
>>         return --_efreet_init_count;
>> @@ -319,6 +325,7 @@
>>     return n;
>> }
>>
>> +#ifndef _WIN32
>> EAPI void
>> efreet_fsetowner(int fd)
>> {
>> @@ -330,7 +337,14 @@
>>
>>     if (fchown(fd, ruid, rgid) != 0) return;
>> }
>> +#else
>> +EAPI void
>> +efreet_fsetowner(int fd __UNUSED__)
>> +{
>> +}
>> +#endif
>>
>> +#ifndef _WIN32
>> EAPI void
>> efreet_setowner(const char *path)
>> {
>> @@ -343,3 +357,9 @@
>>     efreet_fsetowner(fd);
>>     close(fd);
>> }
>> +#else
>> +EAPI void
>> +efreet_setowner(const char *path __UNUSED__)
>> +{
>> +}
>> +#endif
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> enlightenment-svn mailing list
>> enlightenment-...@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to