tuanmasterit / wifite

Automatically exported from code.google.com/p/wifite
GNU General Public License v2.0
0 stars 0 forks source link

File rename issue #75

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the program python ./wifite.py
2. Capture WPA hash
3.

What is the expected output? What do you see instead?
I would expect that it will go on. Instead i get 
OSError: [Errno 18] Invalid cross-device link

What version of the product are you using? On what operating system?
wifite.py Version 85

Please provide any additional information below.

I was able to solve it using the following function:

def rename(old, new):
    try:
        os.rename(old, new)
    except os.error, detail:
        if detail.errno == errno.EXDEV:
            try:
                copy(old, new)
            except:
                os.unlink(new)
                raise
                os.unlink(old)
        # if desired, deal with other errors
        else:
            raise

which i found over the net. In addition you need to add:
import errno

Original issue reported on code.google.com by hannan.s...@gmail.com on 9 Feb 2012 at 5:05

Attachments: