WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Is findshares open source?  (Read 29125 times)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11695
Re: Is findshares open source?
« Reply #60 on: July 24, 2016, 04:41:16 PM »
Hi Misalf
Part of the fix was to leave any ppp device off the list so it's ignored and doesn't get scanned. Are ppp devices strictly
external access (i.e. modem) or do they serve as a LAN interface as well?

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Is findshares open source?
« Reply #61 on: July 24, 2016, 09:14:00 PM »
I'm fine with omitting ppp.
Even though I don't actually know, I doubt Point-to-Point can be used for "local" networking.
However, if it is possible, say one sets up a private server to dial-up into, I'd guess your tool could be neglected in such a case, as whoever would create a setup like this is probably geeky enough to write his/her own code.
Download a copy and keep it handy: Core book ;)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11695
Re: Is findshares open source?
« Reply #62 on: September 05, 2016, 12:15:01 AM »
Hi Misalf
The updated  findshares.tcz  is now available for download in all the repositories.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Is findshares open source?
« Reply #63 on: September 05, 2016, 09:19:50 AM »
;)
Download a copy and keep it handy: Core book ;)

Offline CentralWare

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 776
Re: Is findshares open source?
« Reply #64 on: June 09, 2018, 10:13:02 AM »
@Rich: Any chance you have the updated sources available?  [July 24, 2016 posts]
I was considering porting to 86x64 when I found this thread and it sounds like you and the crew have already ironed out a good number of potential issues.
From the sources included with "mx-findshares" which look to be ~1.06 via gcc 7.2.0
Code: [Select]
In file included from packetdata.h:10:0,
                 from findshares.c:67:
netrshareenum.h:47:31: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
   .bytecount=10, .Filename[0]="\\srvsvc" };
                               ^~~~~~~~~~
netrshareenum.h:47:31: note: (near initialization for 'NTcreate.Filename[0]')
netrshareenum.h:47:31: error: initializer element is not computable at load time
netrshareenum.h:47:31: note: (near initialization for 'NTcreate.Filename[0]')
In file included from findshares.c:67:0:
packetdata.h:63:14: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
   .string[0]="NT LM 0.12" };
              ^~~~~~~~~~~~
packetdata.h:63:14: note: (near initialization for 'protocol.string[0]')
packetdata.h:63:14: error: initializer element is not computable at load time
packetdata.h:63:14: note: (near initialization for 'protocol.string[0]')
packetdata.h:102:61: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
   .ansipasswordlen=1, .capabilities=0x00000203, .strings[0]="Guest" };
                                                             ^~~~~~~
packetdata.h:102:61: note: (near initialization for 'setup.strings[0]')
packetdata.h:102:61: error: initializer element is not computable at load time
packetdata.h:102:61: note: (near initialization for 'setup.strings[0]')
packetdata.h:134:65: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
   .AndXCommand=0xFF, .passwordlen=1, .bytecount=32, .strings[0]="\\\\" };
                                                                 ^~~~~~
packetdata.h:134:65: note: (near initialization for 'treeconn.strings[0]')
packetdata.h:134:65: error: initializer element is not computable at load time
packetdata.h:134:65: note: (near initialization for 'treeconn.strings[0]')
findshares.c: In function 'Copy':
findshares.c:265:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    if(((int)csrc & -256) != 0) csrc+=(count - 1);
        ^
findshares.c:271:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    if(((int)csrc & -256) == 0)
        ^
findshares.c:273:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     *cdest=((int)csrc & 255);
             ^
findshares.c: In function 'GetShareInfoSMB':
findshares.c:875:6: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  int tmp, timeout=3;
      ^~~
findshares.c: In function 'ScanInterfaces':
findshares.c:1055:6: warning: variable 's' set but not used [-Wunused-but-set-variable]
  int s, ptr=0;
      ^

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11695
Re: Is findshares open source?
« Reply #65 on: June 09, 2018, 03:57:27 PM »
Hi centralware
The most recent source is version 1.08 which is attached to reply #50 here:
http://forum.tinycorelinux.net/index.php/topic,16735.msg125515.html#msg125515

Offline CentralWare

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 776
Re: Is findshares open source?
« Reply #66 on: June 09, 2018, 04:06:24 PM »
Hi @Rich.  I was assuming things might have gone a little past 1.08 based on post #58, but thank you regardless.
If I get a chance, I'll add this one to my x64 projects (x86.tcz->x64.tcz); I already have about half a dozen finished; still another dozen or so in the mix.